(minor) allow a comma in regex pattern for wild repos

This was an oversight.  We already allow { and } anyway...
This commit is contained in:
Sitaram Chamarty 2011-08-12 21:23:59 +05:30
parent 0b68365860
commit b70cf05b43

View file

@ -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._\@/+:-]*$);