From d05a23cbc9100fbe406462ee0e5ed83b4377cf70 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 26 May 2006 17:27:51 +0000 Subject: [PATCH] sanitize_user regex fix from grigs. fixes #2729 git-svn-id: http://svn.automattic.com/wordpress/trunk@3795 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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); }