WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#14628 closed defect (bug) (fixed)

sanitize_email() broken

Reported by: ozh Owned by:
Milestone: 3.1 Priority: normal
Severity: trivial Version: 3.1
Component: Formatting Keywords: has-patch commit
Focuses: Cc:

Description

sanitize_email() does not sanitize as expected because of typo in regexp

var_dump( sanitize_email( 'ozh@(ozh).org' ) );

Before patch:

string(13) "ozh@(ozh).org"

After patch:

string(11) "ozh@ozh.org"

Attachments (1)

validate_email.diff (458 bytes) - added by ozh 7 years ago.

Download all attachments as: .zip

Change History (4)

@ozh
7 years ago

#1 @ozh
7 years ago

  • Version set to 3.1

#2 @nacin
7 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 3.1

#3 @ryan
7 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.