diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2007-12-24 03:42:02 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2007-12-24 03:42:02 -0800 |
commit | e10cdf25ab97548d301da622c6cdec9ff1d9b85f (patch) | |
tree | e229f748f02998a17524b933d13c857da13c5262 | |
parent | Convert existing SSH module to use the sshkey module, including all tests. (diff) | |
download | gitosis-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.py | 2 |
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): |