sanitize_user regex fix from grigs. fixes #2729

git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3794 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-05-26 17:27:33 +00:00
parent 1204f35648
commit ddab6df876
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ function sanitize_user( $username, $strict = false ) {
// If strict, reduce to ASCII for max portability. // If strict, reduce to ASCII for max portability.
if ( $strict ) 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); return apply_filters('sanitize_user', $username, $raw_username, $strict);
} }