Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
filter.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2014 at 01:50 UTC
Updated:
27 Oct 2015 at 01:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
David_Rothstein commentedLooks like a good fix to me - plus signs are valid in email addresses and without this patch it only picks up the parts after the plus sign as being a linkable email address, which is just broken.
Needs to go into Drupal 8 first though.
Comment #2
jacob.embree commentedThe relevant line in Drupal 8 right now is filter.module:570:
I can confirm that this is an issue for Drupal 8. I don't understand that line yet.
Comment #3
jacob.embree commentedThat was easy.
The pattern can be understood after reading Unicode character properties at PHP.net.
Comment #4
jhedstromLet's add a test for this in
FilterUnitTest.Comment #5
justachris commentedAdding novice tag, adding a test for this should be very approachable for someone new to contributing, as should the review of the patch.
Comment #6
dcmul commentedHope this works.
Comment #7
ByronNorris commentedLooks good. Here are screenshots post-patch:
At Install

User edit

FilterUnitTest

Comment #8
jhedstromThis looks good to me as well. I added a beta evaluation.
Comment #9
jhedstromComment #10
alexpottCommitted d47bd72 and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation to the issue summary.
Comment #12
ByronNorris commentedI've added a small patch for D7, but need a sanity check. I tried D7.38 at simplytest.me and 7.x branch locally. Both allowed me to create accounts with emails containing plus signs without the patch. Does this match up with what others see when they try to add a user with an email containing a plus sign?
Comment #13
cilefen commentedOne way to be sure is to add tests.
Comment #14
David_Rothstein commentedThe patch looks good, but yes, the Drupal 8 tests need to be backported also.
As far as I understand, this was only ever a bug with the text filtering, not with other places in core that use email addresses. (If it were other places too, like account creation, it would definitely be a more serious bug!)
Comment #15
sumitmadan commentedBackported test also.
Comment #17
sumitmadan commentedComment #19
ckaotikWorking on the review at the mentored sprint in Barcelona with Gregg Marshall.
Comment #20
ckaotikReviewed the backport to D7 on 7.39, works like a charm.
Before:

After:

Barcelona Sprints: We're now done with this issue :)
Comment #21
greggmarshalldouble checked while mentoring
Comment #22
David_Rothstein commentedCommitted to 7.x - thanks!