From 169aa0275e0fda1e3c8dc459091cc16d403f72b4 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sat, 1 Jun 2013 02:26:16 -0700 Subject: [PATCH] fix XSS --- httemplate/edit/cust_pkg.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ++ ; -- 2.11.0