WordPress.org

Make WordPress Core

Changeset 10783


Ignore:
Timestamp:
03/14/2009 01:35:47 AM (9 years ago)
Author:
azaozz
Message:

Fix regex in sanitize_email(), props sambauers, see #9316

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r10777 r10783  
    15171517    // LOCAL PART
    15181518    // Test for invalid characters
    1519     if ( !preg_match( '/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/', $local ) ) {
     1519    $local = preg_replace( '/[^a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]/', '', $local );
     1520    if ( '' === $local ) {
    15201521        return apply_filters( 'sanitize_email', '', $email, 'local_invalid_chars' );
    15211522    }
Note: See TracChangeset for help on using the changeset viewer.