Commit 55cfab44 authored by Michal Čihař's avatar Michal Čihař

Merge pull request #296 from mchubby/ssh-pubkey-cmt

Allow multiple words for OpenSSH public key: comment field
parents 61aa8d32 43310a4d
...@@ -173,7 +173,7 @@ def ssh(request): ...@@ -173,7 +173,7 @@ def ssh(request):
# Read key data if it exists # Read key data if it exists
if os.path.exists(key_path): if os.path.exists(key_path):
key_data = file(key_path).read() key_data = file(key_path).read()
key_type, key_fingerprint, key_id = key_data.strip().split() key_type, key_fingerprint, key_id = key_data.strip().split(None, 2)
key = { key = {
'key': key_data, 'key': key_data,
'type': key_type, 'type': key_type,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment