WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#44324 closed defect (bug) (invalid)

WordPress cuts plus signs in email addresses

Reported by: SGr33n Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.9.6
Component: Users Keywords:
Focuses: Cc:

Description

Hi,
GMail has this cool function that if you add a plus sign to your email you can work with filters and get a variety of email aliases (ref. https://gmail.googleblog.com/2008/03/2-hidden-ways-to-get-more-from-your.html).
If you use it on WordPress it will cut the plus sign, making the account unreachable.

It would be useful if WordPress could handle this function, but at least it should cut everything after the plus sign, not only the sign itself.

Example: testemail@… is the original email address, testemail+wp@… is an alias, WordPress transforms this into testmailwp@… that is a completely different email address, unreachable from the real user.

So WordPress could not remove the plus sign or at least remove all the part after the sign.

Thanks :)

Change History (4)

#1 @pbiron
2 years ago

I suspect you've got an active plugin that is stripping the +.

I just tested on clean (i.e., no plugins, twentyseventeen theme) single and multi-site 4.9.6 installs and test+wp@example.com was accepted by both.

#2 @SGr33n
2 years ago

Was happened while I was developing a plugin, happened via wp_create_user() function. I will test it again.

#3 @SGr33n
2 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Ok, I tested it and I found what's wrong. The username, that was the same as the email address, was stripping the plus, the email is correct so everything is ok :)

Thanks!

Last edited 2 years ago by SGr33n (previous) (diff)

#4 @netweb
2 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.