Skip to content

Commit

Permalink
gitweb: Change to use explicitly function call cgi->escapHTML()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Li Yang authored and Junio C Hamano committed Mar 6, 2007
1 parent ba66c58 commit c390ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ ($;%)
my %opts = @_;

$str = to_utf8($str);
$str = escapeHTML($str);
$str = $cgi->escapeHTML($str);
if ($opts{'-nbsp'}) {
$str =~ s/ /&nbsp;/g;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit c390ae9

Please sign in to comment.