@matheusbsbs / matheus-bagliano / commits / 290b1467a3
Fork 0

gitweb: Change to use explicitly function call cgi->escapHTML()

Change to use explicitly function call cgi->escapHTML(). This fix the problem on some systems that escapeHTML() is not functioning, as default CGI is not setting 'escape' parameter. Signed-off-by: Li Yang <leoli@freescale.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Li Yang committed Mar 6, 2007 at 11:58 UTC 290b1467a387a3e5306028f36118a52958fa36c5
1 file changed +2 -2
gitweb/gitweb.perl
+2 -2
@@ -591,7 +591,7 @@ sub esc_html ($;%) {
591 my %opts = @_;
592
593 $str = to_utf8($str);
594 - $str = escapeHTML($str);
594 + $str = $cgi->escapeHTML($str);
595 if ($opts{'-nbsp'}) {
596 $str =~ s/ /&nbsp;/g;
597 }
@@ -605,7 +605,7 @@ sub esc_path {
605 my %opts = @_;
606
607 $str = to_utf8($str);
608 - $str = escapeHTML($str);
608 + $str = $cgi->escapeHTML($str);
609 if ($opts{'-nbsp'}) {
610 $str =~ s/ /&nbsp;/g;
611 }