projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1f912a
)
fix XSS
author
Ivan Kohler
<ivan@freeside.biz>
Tue, 18 Jun 2013 22:25:48 +0000
(15:25 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Tue, 18 Jun 2013 22:25:48 +0000
(15:25 -0700)
httemplate/view/elements/svc_Common.html
patch
|
blob
|
history
diff --git
a/httemplate/view/elements/svc_Common.html
b/httemplate/view/elements/svc_Common.html
index
3c1cc66
..
0248434
100644
(file)
--- 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);