Make WordPress Core

Opened 6 months ago

Closed 6 months ago

Last modified 6 months ago

#58465 closed defect (bug) (invalid)

Cannot use Apostrophe in email

Reported by: jane-blonde's profile Jane Blonde Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.2.2
Component: General Keywords:
Focuses: Cc:

Description

Hi Guys,

We cannot add an email address with an apostrophe, for example DavidO'Byrne@…

Is this a bug or a policy decision?

Is there a work around?

David

Change History (5)

#1 @dingo_d
6 months ago

Hi Jane!

Can you share in which context this email fails to work? Is this when you try to register a user? Are plugins installed which are modifying some email validation functionality?

Is this related to your personal site or wordpress.org?

More information is needed in order to see what the problem is, and if this issue is valid for trac, or if it should be asked in support forums.

The is_email function will accept the apostrophe character.

#2 @dingo_d
6 months ago

  • Focuses coding-standards removed

#3 @Jane Blonde
6 months ago

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

This issue happens when adding or updating a user via the users admin interface, there is Woocommerce which allows apostrophes into customer detail, and Profile Builder and Obfuscate Email.

The error is "ERROR E-mail:The email you entered is not a valid email address."

I've debugged all 3 and found that the problem only occurs when Profile Builder is active.

Thanks for this, hopefully this helps others going forward, I couldn't find anything on the web.

DDH

Last edited 6 months ago by Jane Blonde (previous) (diff)

#4 @dingo_d
6 months ago

Glad you were able to debug the problem :)

You can contact the authors of the Profile Builder plugin https://wordpress.org/support/plugin/profile-builder/ so that they can debug the issue.

Good luck!

#5 @dingo_d
6 months ago

  • Focuses ui removed
Note: See TracTickets for help on using tickets.