gitweb: Change to use explicitly function call cgi->escapHTML()
authorLi Yang <leoli@freescale.com>
Tue, 6 Mar 2007 03:58:56 +0000 (11:58 +0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 6 Mar 2007 11:08:06 +0000 (03:08 -0800)
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>
gitweb/gitweb.perl
index 653ca3cc60ef161f06bd3a6652eba7ad3453cc2e..3a564d1c482c53b07ed83e3baaca112aa7a8afd9 100755 (executable)
@@ -591,7 +591,7 @@ ($;%)
        my %opts = @_;
 
        $str = to_utf8($str);
-       $str = escapeHTML($str);
+       $str = $cgi->escapeHTML($str);
        if ($opts{'-nbsp'}) {
                $str =~ s/ /&nbsp;/g;
        }
@@ -605,7 +605,7 @@ sub esc_path {
        my %opts = @_;
 
        $str = to_utf8($str);
-       $str = escapeHTML($str);
+       $str = $cgi->escapeHTML($str);
        if ($opts{'-nbsp'}) {
                $str =~ s/ /&nbsp;/g;
        }