From c71448664658234ea1af32fe7ca61bb1d77dce72 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 14 Nov 2006 16:23:11 +0000 Subject: [PATCH] Defensive use of xml_encode() --- web/htdocs/details/found.mc | 12 ++++++------ web/htdocs/details/full.mc | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/web/htdocs/details/found.mc b/web/htdocs/details/found.mc index da1e53e..5c8993f 100644 --- a/web/htdocs/details/found.mc +++ b/web/htdocs/details/found.mc @@ -1,4 +1,4 @@ -%# $Id: found.mc,v 1.17 2006-10-27 00:47:05 mike Exp $ +%# $Id: found.mc,v 1.18 2006-11-14 16:23:11 mike Exp $ <%once> sub print_navlink { my($params, $cond, $caption, $skip) = @_; @@ -125,11 +125,11 @@ push @ids, $id; <% $i %> <% xml_encode($title) %> - <% xml_encode($author) %> - <% xml_encode($host) %> - <% xml_encode($port) %> - <% xml_encode($db) %> + %>"><% xml_encode($title, "[untitled]") %> + <% xml_encode($author, "") %> + <% xml_encode($host, "") %> + <% xml_encode($port, "") %> + <% xml_encode($db, "") %> Test $id @@ -58,7 +58,7 @@ the Init Response. [ "Explain" => \&calc_explain, $xc ], ); -

<% xml_encode($xc->find("e:databaseInfo/e:title")) %>

+

<% xml_encode($xc->find("e:databaseInfo/e:title"), "") %>

<%perl> foreach my $ref (@fields) { -- 1.7.10.4