Skip to content
Snippets Groups Projects
Commit 9ee049e3 authored by Jeremy Whiting's avatar Jeremy Whiting
Browse files

Check for "ssh-rsa " since the space is needed.

parent 68bee9bc
No related branches found
No related tags found
1 merge request!1Rewrite devkit service in python.
...@@ -78,8 +78,8 @@ def write_key(post_body): ...@@ -78,8 +78,8 @@ def write_key(post_body):
if length >= 64 * 1024: if length >= 64 * 1024:
print("Key length too long") print("Key length too long")
return None return None
if not post_body.decode().startswith('ssh-rsa'): if not post_body.decode().startswith('ssh-rsa '):
print("Key doesn't start with ssh-rsa") print("Key doesn't start with ssh-rsa ")
return None return None
# Get to the base64 bits # Get to the base64 bits
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment