Ticket #17491: 17491.diff
File 17491.diff, 538 bytes (added by , 13 years ago) |
---|
-
wp-includes/formatting.php
1512 1512 1513 1513 // LOCAL PART 1514 1514 // Test for invalid characters 1515 if ( ! preg_match( '/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/', $local ) ) {1515 if ( ! preg_match( '/^[a-z0-9!#$%&\'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&\'*+\/=?^_`{|}~-]+)*$/i', $local ) ) { 1516 1516 return apply_filters( 'is_email', false, $email, 'local_invalid_chars' ); 1517 1517 } 1518 1518