{"thread":{"id":"5789","subject":"[PATCH] gitweb: Escape ESCAPE (\\e) character","startedAt":"2006-10-02T21:54:53Z","lastAt":"2006-10-02T21:54:53Z","messageCount":1,"participants":["Luben Tuikov"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"28122","messageId":"20061002215453.45092.qmail@web31814.mail.mud.yahoo.com","threadId":"5789","inReplyTo":null,"subject":"[PATCH] gitweb: Escape ESCAPE (\\e) character","fromName":"Luben Tuikov","fromEmail":"ltuikov@yahoo.com","sentAt":"2006-10-02T21:54:53Z","receivedAt":"2006-10-02T21:54:53Z","isPatch":true,"sender":{"key":"ltuikov@yahoo.com","avatar":null},"body":"Take a look at commit 20a3847d8a5032ce41f90dcc68abfb36e6fee9b1\nusing gitweb before this patch.  This patch fixes this.\n\nSigned-off-by: Luben Tuikov <ltuikov@yahoo.com>\n---\n gitweb/gitweb.perl |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex 10e803a..a9e95c9 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -485,6 +485,7 @@ sub esc_html {\n \t$str = decode(\"utf8\", $str, Encode::FB_DEFAULT);\n \t$str = escapeHTML($str);\n \t$str =~ s/\\014/^L/g; # escape FORM FEED (FF) character (e.g. in COPYING file)\n+\t$str =~ s/\\033/^[/g; # \"escape\" ESCAPE (\\e) character (e.g. commit 20a3847d8a5032ce41f90dcc68abfb36e6fee9b1)\n \treturn $str;\n }\n \n-- \n1.4.2.3.gc269\n"}]}