From a3d2d527f8551ab71c29650e889ef0d5683d479d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 26 May 2006 17:27:51 +0000 Subject: [PATCH] sanitize_user regex fix from grigs. fixes #2729 git-svn-id: https://develop.svn.wordpress.org/trunk@3795 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions-formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions-formatting.php b/wp-includes/functions-formatting.php index 8747854406..5af4df58b9 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -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); }