Skip to content

Commit

Permalink
gitweb: Escape ESCAPE (\e) character
Browse files Browse the repository at this point in the history
Take a look at commit 20a3847
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>
  • Loading branch information
Luben Tuikov authored and Junio C Hamano committed Oct 3, 2006
1 parent 54bd255 commit e70866f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e70866f

Please sign in to comment.