Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
filter.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2006 at 23:01 UTC
Updated:
5 May 2009 at 17:10 UTC
Hello,
I have an address formatted like this in one of my pages: Tom_O'Shay@foor.bar.org
It is not process by urlfilter.
According to http://tools.ietf.org/html/rfc3696#page-5, this should be legal.
Without quotes, local-parts may consist of any combination of
alphabetic characters, digits, or any of the special characters
! # $ % & ' * + - / = ? ^ _ ` . { | } ~
Thanks!
Comments
Comment #1
Uwe Hermann commentedGood point. Moving to 5.x-dev.
Comment #2
ricabrantes commentedAny news, i think this moving to D7.x-dev..
Comment #3
LAsan commentedBumping.
Comment #4
damien tournoud commentedThe issue is more general and still exists in 7.x.
Comment #5
mdupontIs this issue still present in latest 7.x?
Comment #6
damienmckennaThe latest code as of today uses the PHP >5.2 function filter_var() to do the filtering, so I think this may be irrelevant now.
Comment #7
j.somers commentedThis is indeed fixed by using
filter_var().If the email address would be invalid the output would be
bool(false)Comment #8
damienmckennaPlease note that PHP's filter_var/FILTER_VALIDATE_EMAIL does not correctly support the RFC standards, so it is entirely possible to have valid email addresses which fail this test. See #265548: valid_email_address() is not RFC compliant for more info.