gitweb: fix error in sanitize when highlight is enabled
authorOrgad Shaneh <orgads@gmail.com>
Sun, 30 Dec 2012 11:52:53 +0000 (13:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jan 2013 00:27:27 +0000 (16:27 -0800)
commit0e901d24fd70630ffed5411e6217c2dfce9c8da6
treeb67631a2c0b023a1bc45f2a304cac83c0347d198
parentd0f1ea6003d97e63110fa7d50bb07f546a909b6e
gitweb: fix error in sanitize when highlight is enabled

$1 becomes undef by internal regex, since it has no capture groups.

Match against accpetable control characters using index() instead of a regex.

Signed-off-by: Orgad Shaneh <orgads@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl