CodeIgniter Forums

Full Version: Form validation should use valid_email in helper
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]dmorin[/eluser]
The Form Validation, old validation, and email helper all contain a valid_email() function. But instead of the libraries using the helper, none of them reference one another. So, if we need to update the email address detection regex that CI uses (for example, to include single quotes which are valid and people do use), we have to extend all three.

Instead, it seems like the two validation libraries should use the version in the helper in which case overriding that single one would have the desired effect across the system.