Browse Source

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 <leoli@freescale.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Li Yang 18 years ago committed by Junio C Hamano
parent
commit
c390ae97be
  1. 4
      gitweb/gitweb.perl

4
gitweb/gitweb.perl

@ -591,7 +591,7 @@ sub esc_html ($;%) { @@ -591,7 +591,7 @@ sub esc_html ($;%) {
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 { @@ -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;
}

Loading…
Cancel
Save