Closed (fixed)
Project:
Invite
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Dec 2007 at 15:10 UTC
Updated:
11 May 2009 at 17:30 UTC
According to RFC 2822, an email address could be of the form:
name-addr = [display-name] angle-addr
angle-addr = [CFWS] "<" addr-spec ">" [CFWS] / obs-angle-addr
display-name = phrase
addr-spec = local-part "@" domain
However, invite.module rejects those addresses as invalid.
This might not be a problem if users are entering addresses by hand, but if using an automated approach (like the plaxo widget, such addresses may be listed.
The attached patch is a simple fix for this problem. It might not be perfect in terms of regex, but it is good enough for me at the moment.
| Comment | File | Size | Author |
|---|---|---|---|
| invite-angled.patch | 665 bytes | yhager |
Comments
Comment #1
smk-ka commentedHEAD is only sporadically synced, so if you're using it you probably don't have all the latest features.
This issue has been targeted by #183018: Parsing Email adresses, see http://drupal.org/cvs?commit=88299. At least it should. If it still doesn't work for you, could you send me an example email where it breaks?
Comment #2
yhager commentedMy mistake, I was using ver 5.x-1.12. Looking at the commit and release log, it seems that this commit would fix this issue, and that it is present on 5.x-1.13. I can't test it at the moment, but from looking at the code, it looks like it's fixed.
Thanks!
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
sethcohn commentedReopening...
Using 1.13, and the plaxo widget mentioned above, some addresses are dropped in the textfield in the form:
This is a perfectly valid email, but fails with the current validator. The patch above _does_ fix this problem.
Comment #5
sethcohn commentedPatch is still needed, though the location of the patch is different.
Comment #6
paganwinter commentedSubscribing...
Comment #7
sethcohn commentedbump. I'm using this patch with success, and would love to it made a part of the official code.
Comment #8
smk-ka commentedThanks for reporting back, patch has been committed to all 2.x branches.