Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#46391 closed defect (bug) (duplicate)

function is_email returns true on ... or .@ within the e-mail-address

Reported by: rudolffiedler's profile RudolfFiedler Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Formatting Keywords: has-patch
Focuses: Cc:

Description

Hi,
the correct e-mail-address-syntax don't allow points (.) exactly before the @, and don't allow more than one point back to back.
2 examples:
The e-mail r.fiedler.@… is wrong, but is_email() returns true
the e-mail r..fiedler@… is wrong, but is_email() returns true

Attachments (2)

46391.diff (1021 bytes) - added by achyuthajoy 6 years ago.
Updated is_email local part regex according to RFC 5952
46391.2.diff (1021 bytes) - added by achyuthajoy 6 years ago.
Updated is_email local part regex according to RFC 5952

Download all attachments as: .zip

Change History (4)

@achyuthajoy
6 years ago

Updated is_email local part regex according to RFC 5952

@achyuthajoy
6 years ago

Updated is_email local part regex according to RFC 5952

#1 in reply to: ↑ description @achyuthajoy
6 years ago

  • Keywords has-patch added; needs-patch removed

Replying to RudolfFiedler:

Hi,
the correct e-mail-address-syntax don't allow points (.) exactly before the @, and don't allow more than one point back to back.
2 examples:
The e-mail r.fiedler.@… is wrong, but is_email() returns true
the e-mail r..fiedler@… is wrong, but is_email() returns true

#2 @ocean90
6 years ago

  • Component changed from General to Formatting
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version 5.1 deleted

Duplicate of #17491.

Note: See TracTickets for help on using tickets.