mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00
Replace \r with \n in ssh key dumps
This commit is contained in:
@ -639,6 +639,6 @@ def communityauth_getkeys(request, siteid, since=None):
|
||||
else:
|
||||
keys = UserProfile.objects.select_related('user').all().exclude(sshkey='')
|
||||
|
||||
j = json.dumps([{'u': k.user.username, 's': k.sshkey} for k in keys])
|
||||
j = json.dumps([{'u': k.user.username, 's': k.sshkey.replace("\r", "\n")} for k in keys])
|
||||
|
||||
return HttpResponse(_encrypt_site_response(site, j))
|
||||
|
Reference in New Issue
Block a user