okfde / froide

Freedom Of Information Portal
MIT License
357 stars 86 forks source link

Twitter Handles are recognized as Email #303

Closed schiederme closed 5 years ago

schiederme commented 5 years ago

Hey there, If I put an Twitter Handles (e.g. @fragdenstaat) in the inquiry, it will be shown as "<>".

To recreate this bug, just create an inquiry and put an Twitter Handle somewhere.

To see it in wild, have a look at 151925 (IFG inquiry)

I hope this issue report is useful.

stefanw commented 5 years ago

Thanks for reporting this. Syntax for email addresses are complicated. This got triggered because a non-whitespace character was in front of the @ (a double quote "). Regex has been improved.