summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-06-18 15:26:13 -0700
committerIvan Kohler <ivan@freeside.biz>2013-06-18 15:26:13 -0700
commit44386c301ada00b11a5e438f826662f88d2366e6 (patch)
tree2021814e9b2f98cb47bfb031a7677953dd121c2d
parent994fb235ccacdda0db4d37320c9842d0cba149d4 (diff)
fix XSS
-rw-r--r--httemplate/view/elements/svc_Common.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/view/elements/svc_Common.html b/httemplate/view/elements/svc_Common.html
index 3c1cc66fa..02484341b 100644
--- a/httemplate/view/elements/svc_Common.html
+++ b/httemplate/view/elements/svc_Common.html
@@ -70,12 +70,14 @@ function areyousure(href) {
% my $hack_strict_refs = \&{ $f->{'value_callback'} };
% $value = &$hack_strict_refs($svc_x);
% } else {
-% $value = exists($f->{'value'}) ? $f->{'value'} : $svc_x->$field;
+% $value = exists($f->{'value'})
+% ? $f->{'value'}
+% : encode_entities($svc_x->$field);
% }
% } else {
% $field = $f;
% $type = 'text';
-% $value = $svc_x->$field;
+% $value = encode_entities($svc_x->$field);
% }
%
% my $columndef = $part_svc->part_svc_column($field);