From b5e966c10771ccc02a084d3b0e5ebeb760214508 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Tue, 11 Dec 2007 22:50:04 +0200 Subject: Allow underscores, dots and dashes in SSH username local parts. --- gitosis/ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gitosis/ssh.py') 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) -- cgit v1.2.3