Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorLuben Tuikov <ltuikov@yahoo.com>2006-10-03 01:54:53 +0400
committerJunio C Hamano <junkio@cox.net>2006-10-03 12:04:41 +0400
commite70866f53a8d31cde6cfff6396ba0d1f64029afb (patch)
treef488f2b31e1e5ea7379f5228f3273d12dd360b57 /gitweb
parent54bd25580e227c15a5f1a2b01be794b65e434665 (diff)
gitweb: Escape ESCAPE (\e) character
Take a look at commit 20a3847d8a5032ce41f90dcc68abfb36e6fee9b1 using gitweb before this patch. This patch fixes this. Signed-off-by: Luben Tuikov <ltuikov@yahoo.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 44991b1538..3e9d4a0052 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -465,6 +465,7 @@ sub esc_html {
$str = decode("utf8", $str, Encode::FB_DEFAULT);
$str = escapeHTML($str);
$str =~ s/\014/^L/g; # escape FORM FEED (FF) character (e.g. in COPYING file)
+ $str =~ s/\033/^[/g; # "escape" ESCAPE (\e) character (e.g. commit 20a3847d8a5032ce41f90dcc68abfb36e6fee9b1)
return $str;
}