aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2007-12-24 03:42:02 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2007-12-24 03:42:02 -0800
commite10cdf25ab97548d301da622c6cdec9ff1d9b85f (patch)
treee229f748f02998a17524b933d13c857da13c5262
parentConvert existing SSH module to use the sshkey module, including all tests. (diff)
downloadgitosis-dakkar-e10cdf25ab97548d301da622c6cdec9ff1d9b85f.tar.gz
gitosis-dakkar-e10cdf25ab97548d301da622c6cdec9ff1d9b85f.tar.bz2
gitosis-dakkar-e10cdf25ab97548d301da622c6cdec9ff1d9b85f.zip
Exclude spaces from valid chars in username in command.
-rw-r--r--gitosis/ssh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitosis/ssh.py b/gitosis/ssh.py
index 7b2c0c3..604d5b3 100644
--- a/gitosis/ssh.py
+++ b/gitosis/ssh.py
@@ -44,7 +44,7 @@ def generateAuthorizedKeys(keys):
for (user, key) in keys:
yield TEMPLATE % dict(user=user, key=key.key, comment=key.comment)
-_GITOSIS_CMD_RE = '(/[^ "]+/)?gitosis-serve [^"]+'
+_GITOSIS_CMD_RE = '(/[^ "]+/)?gitosis-serve [^ "]+$'
_COMMAND_RE = re.compile(_GITOSIS_CMD_RE)
def filterAuthorizedKeys(fp):