Page MenuHomePhabricator

E-mail validation in Semantic MediaWiki has false negatives
Closed, ResolvedPublic

Description

Author: olivier.beaton

Description:
My organization uses Exchange and has some weird characters in email addresses.

For example: IT/TI-Support@company.com

SMW Email type rejects this email and won't display it.

I expected to be able to use % codes at worst.
http://en.wikipedia.org/wiki/Percent-encoding

IT%2FTI-Support@company.com also fails.

So I'd like the validation relaxes to account for craptacular Exchange, or an option to turn off validation completely (although a basic /^.+?@.+?\..+?$/ is still useful for me)

If someone can point me at where validation is made, I could probably make a patch file.


Version: unspecified
Severity: normal

Details

Reference
bz32295

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:07 AM
bzimport set Reference to bz32295.
bzimport added a subscriber: Unknown Object (MLST).

Thanks for reporting. I threw away SMWs regex and made use of MWs native email validation function when available or a fallback when using MW < 1.18.

Tested the email you provided, works now.

See r102486.