#206 No new lines in ssh keys
Merged by . Opened by pingou.
fix_sshkey  into  master

Download 206.patch
no initial comment

Fixes https://pagure.io/pagure/issue/137

The .replace('\n', '') will effectively only do anything for new lines inside the string, as the .strip() will already remove those are the edges.

Does that really happen?

In any case, +1.

The .replace('\n', '') will effectively only do anything for new lines inside the string, as the .strip() will already remove those are the edges.

Does that really happen?

Yes I have had someone that did a wrong copy/paste and ended up with an ssh key
spread over multiple lines.

The only problem I could see is that it means we cannot specify multiple ssh
keys to pagure within one field, but I am not sure gitolite supports this
either.

Metadata