summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorLi Yang <leoli@freescale.com>2007-03-06 03:58:56 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-03-06 11:08:06 (GMT)
commitc390ae97beb9e8cdab159b593ea9659e8096c4db (patch)
treebced93121fd44bb7cc7985de396f0d3d93c489eb /gitweb
parentba66c58637734a7a70196515a43328c2e92016c8 (diff)
downloadgit-c390ae97beb9e8cdab159b593ea9659e8096c4db.zip
git-c390ae97beb9e8cdab159b593ea9659e8096c4db.tar.gz
git-c390ae97beb9e8cdab159b593ea9659e8096c4db.tar.bz2
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 653ca3c..3a564d1 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -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 {
my %opts = @_;
$str = to_utf8($str);
- $str = escapeHTML($str);
+ $str = $cgi->escapeHTML($str);
if ($opts{'-nbsp'}) {
$str =~ s/ /&nbsp;/g;
}