sanitize_user regex fix from grigs. fixes #2729
git-svn-id: http://svn.automattic.com/wordpress/trunk@3795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f072c902db
commit
d05a23cbc9
|
@ -278,7 +278,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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue