]> Lady’s Gitweb - Gitweb/commit
gitweb: fix error in sanitize when highlight is enabled
authorOrgad Shaneh <redacted>
Sun, 30 Dec 2012 11:52:53 +0000 (13:52 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:32 +0000 (00:51 -0400)
commit5ce6fab6c3d20a7655b5f79665609900cf9ffa2d817900e724a302acc7c8cc8c
treeacc28390bee1218ddd54eb4b7c3876f7cdda1b58c9a4480251b7aacf5e07b803
parent8ed2f8a3ee11810853865c6a45d4c9561d9fff8ad5b83d118bdfb5137eb308bb
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.186582 seconds and 4 git commands to generate.