Ticket #14628: validate_email.diff
File validate_email.diff, 458 bytes (added by , 10 years ago) |
---|
-
formatting.php
1743 1743 $sub = trim( $sub, " \t\n\r\0\x0B-" ); 1744 1744 1745 1745 // Test for invalid characters 1746 $sub = preg_replace( '/ ^[^a-z0-9-]+$/i', '', $sub );1746 $sub = preg_replace( '/[^a-z0-9-]+/i', '', $sub ); 1747 1747 1748 1748 // If there's anything left, add it to the valid subs 1749 1749 if ( '' !== $sub ) {