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-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/194aa3b3b9ae6310ab1917888de2f085f12e79c263ae581c95b40843f5314d45?ds=inline 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 --- diff --git a/gitweb.perl b/gitweb.perl index 5282ba2..1d1202f 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -592,7 +592,7 @@ sub esc_html ($;%) { my %opts = @_; $str = to_utf8($str); - $str = escapeHTML($str); + $str = $cgi->escapeHTML($str); if ($opts{'-nbsp'}) { $str =~ s/ / /g; } @@ -606,7 +606,7 @@ sub esc_path { my %opts = @_; $str = to_utf8($str); - $str = escapeHTML($str); + $str = $cgi->escapeHTML($str); if ($opts{'-nbsp'}) { $str =~ s/ / /g; }