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>
This commit is contained in:
Li Yang 2007-03-06 11:58:56 +08:00 committed by Junio C Hamano
parent ba66c58637
commit c390ae97be

View file

@ -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;
}