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>
Sun, 25 Mar 2007 05:25:40 +0000 (22:25 -0700)
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 ea39d7e98bb646897d1bb1f1e270b1cd2fc046ad..775eebe0f38568afaa7bcee67560125628e88c6c 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;
        }