Ticket #2729: regex_escape_dash.diff
| File regex_escape_dash.diff, 529 bytes (added by markjaquith, 6 years ago) |
|---|
-
wp-includes/functions-formatting.php
278 278 279 279 // If strict, reduce to ASCII for max portability. 280 280 if ( $strict ) 281 $username = preg_replace('|[^a-z0-9 _. -@]|i', '', $username);281 $username = preg_replace('|[^a-z0-9 _.\-@]|i', '', $username); 282 282 283 283 return apply_filters('sanitize_user', $username, $raw_username, $strict); 284 284 }
