From 757a0d2e1767bc39f229bccba630664721b6a2c8 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 14 Nov 2006 16:09:14 +0000 Subject: [PATCH] Defensive xml_encode() calling. --- web/htdocs/details/form.mc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/htdocs/details/form.mc b/web/htdocs/details/form.mc index 407b302..864524d 100644 --- a/web/htdocs/details/form.mc +++ b/web/htdocs/details/form.mc @@ -1,4 +1,4 @@ -%# $Id: form.mc,v 1.2 2006-11-14 16:00:28 mike Exp $ +%# $Id: form.mc,v 1.3 2006-11-14 16:09:14 mike Exp $ <%args> $id => undef $conn @@ -55,7 +55,7 @@ if (defined $update) { ZOOM::IRSpy::_really_rewrite_record($conn, $xc->getContextNode()); } -

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

+

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

% if ($nchanges) {

The record has been updated.
@@ -71,8 +71,7 @@ foreach my $ref (@fields) { <% $caption %> -% my $data = $xc->find($xpath); -% $data = defined $data ? xml_encode($data) : ""; +% my $data = xml_encode($xc->find($xpath), ""); % if ($nlines) { % } else { -- 1.7.10.4