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
c390ae97beb9e8cdab159b593ea9659e8096c4db
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/ / /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/ / /g;
611
}