diff options
author | Tommi Virtanen <tv@eagain.net> | 2007-12-17 19:08:36 +0200 |
---|---|---|
committer | Tommi Virtanen <tv@eagain.net> | 2007-12-17 19:08:36 +0200 |
commit | 27bd3c9954fa8e4c4a5d900b0e63eaae3f88e64c (patch) | |
tree | 9c89ff3d67298e7854039bb0d42a61c722812f53 /gitosis/ssh.py | |
parent | Allow underscores, dots and dashes in SSH username local parts. (diff) | |
download | gitosis-gentoo-27bd3c9954fa8e4c4a5d900b0e63eaae3f88e64c.tar.gz gitosis-gentoo-27bd3c9954fa8e4c4a5d900b0e63eaae3f88e64c.tar.bz2 gitosis-gentoo-27bd3c9954fa8e4c4a5d900b0e63eaae3f88e64c.zip |
Allow uppercase in usernames.
Diffstat (limited to 'gitosis/ssh.py')
-rw-r--r-- | gitosis/ssh.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitosis/ssh.py b/gitosis/ssh.py index 3fe846f..a315a5c 100644 --- a/gitosis/ssh.py +++ b/gitosis/ssh.py @@ -3,7 +3,7 @@ import logging log = logging.getLogger('gitosis.ssh') -_ACCEPTABLE_USER_RE = re.compile(r'^[a-z][a-z0-9_.-]*(@[a-z][a-z0-9.-]*)?$') +_ACCEPTABLE_USER_RE = re.compile(r'^[a-zA-Z][a-zA-Z0-9_.-]*(@[a-zA-Z][a-zA-Z0-9.-]*)?$') def isSafeUsername(user): match = _ACCEPTABLE_USER_RE.match(user) |