]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Change to use explicitly function call cgi->escapHTML()
authorLi Yang <redacted>
Tue, 6 Mar 2007 03:58:56 +0000 (11:58 +0800)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 5282ba298618c260c73a5a4ea6b7aa4bf851b208491d24d59b3d047a97a9bf71..1d1202fb8e4792d1612744ea5aa9f7746888b98d68085868d04af1f7d9291101 100755 (executable)
@@ -592,7 +592,7 @@ sub esc_html ($;%) {
        my %opts = @_;
 
        $str = to_utf8($str);
-       $str = escapeHTML($str);
+       $str = $cgi->escapeHTML($str);
        if ($opts{'-nbsp'}) {
                $str =~ s/ /&nbsp;/g;
        }
@@ -606,7 +606,7 @@ sub esc_path {
        my %opts = @_;
 
        $str = to_utf8($str);
-       $str = escapeHTML($str);
+       $str = $cgi->escapeHTML($str);
        if ($opts{'-nbsp'}) {
                $str =~ s/ /&nbsp;/g;
        }
This page took 0.308322 seconds and 4 git commands to generate.