From b70cf05b43b1c80fe2fca960c777ce62b9ff935d Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Fri, 12 Aug 2011 21:23:59 +0530 Subject: [PATCH] (minor) allow a comma in regex pattern for wild repos This was an oversight. We already allow { and } anyway... --- src/gitolite_rc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitolite_rc.pm b/src/gitolite_rc.pm index 45b99a2..f055f65 100644 --- a/src/gitolite_rc.pm +++ b/src/gitolite_rc.pm @@ -46,7 +46,7 @@ $W_COMMANDS=qr/^git[ -]receive-pack$/; $REPONAME_PATT=qr(^\@?[0-9a-zA-Z][0-9a-zA-Z._\@/+-]*$); $USERNAME_PATT=qr(^\@?[0-9a-zA-Z][0-9a-zA-Z._\@+-]*$); # same as REPONAME, but used for wildcard repos, allows some common regex metas -$REPOPATT_PATT=qr(^\@?[0-9a-zA-Z[][\\^.$|()[\]*+?{}0-9a-zA-Z._\@/-]*$); +$REPOPATT_PATT=qr(^\@?[0-9a-zA-Z[][\\^.$|()[\]*+?{}0-9a-zA-Z._\@/,-]*$); # ADC commands and arguments must match this pattern $ADC_CMD_ARGS_PATT=qr(^[0-9a-zA-Z._\@/+:-]*$);