mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 21:28:02 +01:00
sanitize_user regex fix from grigs. fixes #2729
git-svn-id: https://develop.svn.wordpress.org/trunk@3795 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
add8a92036
commit
a3d2d527f8
@ -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…
x
Reference in New Issue
Block a user