• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Form validation should use valid_email in helper

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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.