From: Ivan Kohler Date: Sat, 1 Jun 2013 09:26:16 +0000 (-0700) Subject: fix XSS X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=169aa0275e0fda1e3c8dc459091cc16d403f72b4 fix XSS --- diff --git a/httemplate/edit/cust_pkg.cgi b/httemplate/edit/cust_pkg.cgi index 88e925460..d86049940 100755 --- a/httemplate/edit/cust_pkg.cgi +++ b/httemplate/edit/cust_pkg.cgi @@ -27,13 +27,13 @@ > <% $pkgnum %>: - <% $all_pkg{$pkgpart} %> - <% $all_comment{$pkgpart} %> + <% $all_pkg{$pkgpart} |h %> - <% $all_comment{$pkgpart} |h %> % foreach my $supp_pkg ( @{ $supp_pkgs_of{$pkgnum} } ) { - + <% $all_pkg{$supp_pkg->pkgpart} %> - <% $all_comment{$supp_pkg->pkgpart} %> + + <% $all_pkg{$supp_pkg->pkgpart} |h %> - <% $all_comment{$supp_pkg->pkgpart} |h %> % } % } @@ -79,7 +79,7 @@ Order new packages " VALUE="<% $value %>" SIZE="2" MAXLENGTH="2"> <% $pkgpart %>: - <% $pkg{$pkgpart} %> - <% $comment{$pkgpart}%> + <% $pkg{$pkgpart} |h %> - <% $comment{$pkgpart} |h %> % % $count ++ ;