projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbca3ef
)
Do not try to xml_encode() undefined values.
author
Mike Taylor
<mike@indexdata.com>
Tue, 14 Nov 2006 16:00:28 +0000
(16:00 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 14 Nov 2006 16:00:28 +0000
(16:00 +0000)
web/htdocs/details/form.mc
patch
|
blob
|
history
diff --git
a/web/htdocs/details/form.mc
b/web/htdocs/details/form.mc
index
73536b7
..
407b302
100644
(file)
--- a/
web/htdocs/details/form.mc
+++ b/
web/htdocs/details/form.mc
@@
-1,4
+1,4
@@
-%# $Id: form.mc,v 1.1 2006-11-14 14:54:06 mike Exp $
+%# $Id: form.mc,v 1.2 2006-11-14 16:00:28 mike Exp $
<%args>
$id => undef
$conn
@@
-71,7
+71,8
@@
foreach my $ref (@fields) {
<tr>
<th><% $caption %></th>
<td>
-% my $data = xml_encode($xc->find($xpath));
+% my $data = $xc->find($xpath);
+% $data = defined $data ? xml_encode($data) : "";
% if ($nlines) {
<textarea name="<% $name %>" rows="<% $nlines %>" cols="61"><% $data %></textarea>
% } else {