From 27bd3c9954fa8e4c4a5d900b0e63eaae3f88e64c Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Mon, 17 Dec 2007 19:08:36 +0200 Subject: Allow uppercase in usernames. --- 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 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) -- cgit v1.2.3