From: Orgad Shaneh Date: Sun, 30 Dec 2012 11:52:53 +0000 (+0200) Subject: gitweb: fix error in sanitize when highlight is enabled X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/5ce6fab6c3d20a7655b5f79665609900cf9ffa2d817900e724a302acc7c8cc8c?hp=5ce6fab6c3d20a7655b5f79665609900cf9ffa2d817900e724a302acc7c8cc8c 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 Signed-off-by: Junio C Hamano ---