diff options
author | Luben Tuikov <ltuikov@yahoo.com> | 2006-10-02 14:54:53 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-03 01:04:41 -0700 |
commit | e70866f53a8d31cde6cfff6396ba0d1f64029afb (patch) | |
tree | f488f2b31e1e5ea7379f5228f3273d12dd360b57 /gitweb | |
parent | 54bd25580e227c15a5f1a2b01be794b65e434665 (diff) | |
download | git-e70866f53a8d31cde6cfff6396ba0d1f64029afb.tar.gz git-e70866f53a8d31cde6cfff6396ba0d1f64029afb.tar.xz |
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-x | gitweb/gitweb.perl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 44991b153..3e9d4a005 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; } |