Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More robust parsing of malformed SSH keys #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zorun
Copy link

@zorun zorun commented Jun 15, 2017

The new testcase would fail with:

File "/tmp/django-sshkey/django_sshkey/util.py", line 96, in init
self.algorithm = self.parts[0].decode('ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd3 in position 2: ordinal not in range(128)

Backport of zorun/django-simplesshkey@2ee730c

The new testcase would fail with:

  File "/tmp/django-sshkey/django_sshkey/util.py", line 96, in __init__
    self.algorithm = self.parts[0].decode('ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd3 in position 2: ordinal not in range(128)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant