Error when searching webfinger IDs with a space at the end
I am using the Mastodon front-end. Searching a user and adding a space on the end results in the following error:
2:48:45.789 [error] #PID<0.23297.6> running Pleroma.Web.Endpoint (cowboy_protocol) terminated
Server: 57n.org:80 (http)
Request: GET /api/v2/search?q=@ana@57n.social+&resolve=true
** (exit) {:bad_label, {:alabel, 'The label "social " is not a valid A-label: ulabel error={bad_label,\n {con
text,\n "Codepoint 32 not allowed (\'DISALLOWED\') at posion 6 in \\"social \\""}}'}}
The front-end should either strip the space or maybe the back-end should be able to cope with it.