]> git.ipfire.org Git - thirdparty/git.git/commit
Escape project name in regexp
authormartin f. krafft <madduck@madduck.net>
Sun, 20 Apr 2008 21:03:56 +0000 (23:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Apr 2008 06:30:11 +0000 (23:30 -0700)
commitbbd4c307fc315847c975efd4c9aa32eb0e8470fb
tree988cdac57962113557c1c045319364fe2f7d437c
parentf45741390844778f5b286cf6607cd767636e5c57
Escape project name in regexp

The project name, when used in a regular expression, needs to be quoted
properly, so that stuff like '++' in the project name does not cause
Perl to barf.

Related info: http://bugs.debian.org/476076
This is a bug in Perl's CGI.pm, but fixing that exposed a similar bug in
gitweb.perl

Signed-off-by: martin f. krafft <madduck@madduck.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl