From: Mike Taylor Date: Tue, 14 Nov 2006 16:23:11 +0000 (+0000) Subject: Defensive use of xml_encode() X-Git-Tag: CPAN-v1.02~54^2~745 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=c71448664658234ea1af32fe7ca61bb1d77dce72 Defensive use of xml_encode() --- 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) {