CiviCRM email validation failing incorrectly
We have an email address that we can't save. It looks like
name.-o-.i.10@example.com
It took a while to figure out because it turned out we hacked the quickform rule to be 'less restrictive' and specifically to support domains like test@ēxāmplē.co.nz
We further hacked this hack to be more workable in #1469 (closed)
We actually have a rule in civicrm that calls return (bool) filter_var($value, FILTER_VALIDATE_EMAIL);
and is maintained as part of php.
My plan is
- figure out how to add the email such that quickform doesn't implement it's rule
- add it such that our rule is called
- unhack the quickform package - we should be bypassing it by the time this is sorted out but having the hack there made this quite a bit harder to figure out so I think it makes sense to undo our damage - this appears to be the upstream https://github.com/pear/HTML_QuickForm/blob/trunk/QuickForm/Rule/Email.php#L50
@seamuslee - thoughts