diff options
author | Sitaram Chamarty <sitaram@atc.tcs.com> | 2012-05-21 13:23:20 +0530 |
---|---|---|
committer | Sitaram Chamarty <sitaram@atc.tcs.com> | 2012-05-21 15:24:40 +0530 |
commit | 3a59f5aff0f68b4836bde537d169dc3552e381b4 (patch) | |
tree | 8de776f2228ec860b290bcddf7ef325ffafa108d | |
parent | v3.02 (diff) | |
download | gitolite-gentoo-3a59f5aff0f68b4836bde537d169dc3552e381b4.tar.gz gitolite-gentoo-3a59f5aff0f68b4836bde537d169dc3552e381b4.tar.bz2 gitolite-gentoo-3a59f5aff0f68b4836bde537d169dc3552e381b4.zip |
line up regexes for easier review
-rw-r--r-- | src/lib/Gitolite/Rc.pm | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/lib/Gitolite/Rc.pm b/src/lib/Gitolite/Rc.pm index 924fe3f..55cda82 100644 --- a/src/lib/Gitolite/Rc.pm +++ b/src/lib/Gitolite/Rc.pm @@ -43,12 +43,15 @@ $rc{LOG_TEMPLATE} = "$ENV{HOME}/.gitolite/logs/gitolite-%y-%m.log"; # variables that should probably never be changed but someone will want to, I'll bet... # ---------------------------------------------------------------------- -$REMOTE_COMMAND_PATT = qr(^[- 0-9a-zA-Z\@\%_=+:,./]*$); -$REF_OR_FILENAME_PATT = qr(^[0-9a-zA-Z][0-9a-zA-Z._\@/+ :,-]*$); -$REPONAME_PATT = qr(^\@?[0-9a-zA-Z][0-9a-zA-Z._\@/+-]*$); -$REPOPATT_PATT = qr(^\@?[0-9a-zA-Z[][\\^.$|()[\]*+?{}0-9a-zA-Z._\@/,-]*$); -$USERNAME_PATT = qr(^\@?[0-9a-zA-Z][0-9a-zA-Z._\@+-]*$); +#<<< +$REMOTE_COMMAND_PATT = qr(^[-0-9a-zA-Z._\@/+ :,\%=]*$); +$REF_OR_FILENAME_PATT = qr(^[0-9a-zA-Z][-0-9a-zA-Z._\@/+ :,]*$); +$REPONAME_PATT = qr(^\@?[0-9a-zA-Z][-0-9a-zA-Z._\@/+]*$); +$REPOPATT_PATT = qr(^\@?[[0-9a-zA-Z][-0-9a-zA-Z._\@/+\\^$|()[\]*?{},]*$); +$USERNAME_PATT = qr(^\@?[0-9a-zA-Z][-0-9a-zA-Z._\@+]*$); + $UNSAFE_PATT = qr([`~#\$\&()|;<>]); +#>>> # ---------------------------------------------------------------------- |