From: Li Yang Date: Tue, 6 Mar 2007 03:58:56 +0000 (+0800) Subject: gitweb: Change to use explicitly function call cgi->escapHTML() X-Git-Tag: v1.5.1-rc1~88 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c390ae97beb9e8cdab159b593ea9659e8096c4db?ds=inline;hp=--cc 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 Signed-off-by: Junio C Hamano --- c390ae97beb9e8cdab159b593ea9659e8096c4db diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 653ca3cc60..3a564d1c48 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -591,7 +591,7 @@ ($;%) my %opts = @_; $str = to_utf8($str); - $str = escapeHTML($str); + $str = $cgi->escapeHTML($str); if ($opts{'-nbsp'}) { $str =~ s/ / /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/ / /g; }