Skip to content

Commit c390ae9

Browse files
Li YangJunio C Hamano
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ba66c58 commit c390ae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitweb/gitweb.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ ($;%)
591591
my %opts = @_;
592592

593593
$str = to_utf8($str);
594-
$str = escapeHTML($str);
594+
$str = $cgi->escapeHTML($str);
595595
if ($opts{'-nbsp'}) {
596596
$str =~ s/ /&nbsp;/g;
597597
}
@@ -605,7 +605,7 @@ sub esc_path {
605605
my %opts = @_;
606606

607607
$str = to_utf8($str);
608-
$str = escapeHTML($str);
608+
$str = $cgi->escapeHTML($str);
609609
if ($opts{'-nbsp'}) {
610610
$str =~ s/ /&nbsp;/g;
611611
}

0 commit comments

Comments
 (0)