Skip to content

Commit

Permalink
sanitize_user regex fix from grigs. fixes #2729
Browse files Browse the repository at this point in the history
git-svn-id: https://develop.svn.wordpress.org/branches/2.0@3794 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
ryanboren committed May 26, 2006
1 parent 17eefaf commit 3a8a3d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-includes/functions-formatting.php
Expand Up @@ -274,7 +274,7 @@ function sanitize_user( $username, $strict = false ) {

// If strict, reduce to ASCII for max portability.
if ( $strict )
$username = preg_replace('|[^a-z0-9 _.-@]|i', '', $username);
$username = preg_replace('|[^a-z0-9 _.\-@]|i', '', $username);

return apply_filters('sanitize_user', $username, $raw_username, $strict);
}
Expand Down

0 comments on commit 3a8a3d5

Please sign in to comment.