Closed (duplicate)
Project:
Webform
Version:
6.x-2.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Apr 2009 at 11:37 UTC
Updated:
9 Feb 2010 at 07:41 UTC
The email field type does not validate for proper email addresses, e.g. the following all pass:
Comments
Comment #1
damienmckennaOn line 144 of components/email.inc it says:
This runs the system function "valid_email_address()" to determine of the address is valid, therefore the problem is with Drupal's internal function and not webform.
Comment #2
damienmckennaThere's a patch for core to fix this: #265548: valid_email_address() is not RFC compliant
Comment #3
quicksketchWe'll pass this on to core. I actually currently use "nate@localhost" regularly in my testing, which isn't actually a valid address according to spec but works anyway. Though using D7 I've gotten used to "nate@localhost.localhost", which works also and matches spec.