Closed (outdated)
Project:
Drupal core
Version:
8.6.x-dev
Component:
other
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
25 Jan 2008 at 12:02 UTC
Updated:
8 Jan 2020 at 22:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lilou commentedReroll.
Comment #2
Anonymous (not verified) commentedThe last submitted patch failed testing.
Comment #3
valthebaldIn 8.x-dev and 7.x-dev, valid_email_address() relies on filter_var() function with FILTER_VALIDATE_EMAIL parameter.
However, as of the latest stable PHP version, filter_var() does not conform to RFC 2822 (i.e. see PHP bugs (https://bugs.php.net/bug.php?id=43402, https://bugs.php.net/bug.php?id=54403)
I think that approach suggested by theborg is better than currently existing in core.
Comment #4
valthebaldRerolling the patch
Comment #5
valthebaldMy bad, I thought that -d8.patch will be submitted for testing, resubmitting with correct name
Comment #7
valthebaldCombining 2 approaches: split $mail to (optional) name and address parts, then validate address part with filter_var()
Comment #8
thedavidmeister commentedminor coding standards issue, need a space after (bool)
https://drupal.org/coding-standards
Comment #9
valthebaldHere we go
Comment #10
alansaviolobo commentedtested this in codepad http://codepad.org/EQlk2KA4
The following code should have returned all true. doesnt seem to be the case
Comment #17
andypostFor d7 #2343043: valid_email_address() should use egulias/EmailValidator and become deprecated