@matheusbsbs / matheus-bagliano / commits / e70866f53a
Fork 0

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>

Luben Tuikov committed Oct 2, 2006 at 14:54 UTC e70866f53a8d31cde6cfff6396ba0d1f64029afb
1 file changed +1
gitweb/gitweb.perl
+1
@@ -465,6 +465,7 @@ sub esc_html {
465 $str = decode("utf8", $str, Encode::FB_DEFAULT);
466 $str = escapeHTML($str);
467 $str =~ s/\014/^L/g; # escape FORM FEED (FF) character (e.g. in COPYING file)
468 + $str =~ s/\033/^[/g; # "escape" ESCAPE (\e) character (e.g. commit 20a3847d8a5032ce41f90dcc68abfb36e6fee9b1)
469 return $str;
470 }
471