diff options
author | Tommi Virtanen <tv@eagain.net> | 2007-12-11 22:50:04 +0200 |
---|---|---|
committer | Tommi Virtanen <tv@eagain.net> | 2007-12-11 22:50:04 +0200 |
commit | b5e966c10771ccc02a084d3b0e5ebeb760214508 (patch) | |
tree | 21acb3cfcd0e1f39a3263f1fc4dd4ed7c7d973d0 /gitosis/ssh.py | |
parent | Enforce safe usernames also when reading public key files from keydir. (diff) | |
download | gitosis-gentoo-b5e966c10771ccc02a084d3b0e5ebeb760214508.tar.gz gitosis-gentoo-b5e966c10771ccc02a084d3b0e5ebeb760214508.tar.bz2 gitosis-gentoo-b5e966c10771ccc02a084d3b0e5ebeb760214508.zip |
Allow underscores, dots and dashes in SSH username local parts.
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 9e8d258..3fe846f 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-z][a-z0-9_.-]*(@[a-z][a-z0-9.-]*)?$') def isSafeUsername(user): match = _ACCEPTABLE_USER_RE.match(user) |