From d7cfd506a40e395ae52d6e95a819210df70a0598 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 12 May 2009 05:21:32 +0000 Subject: [PATCH] Allow quotes in passwords. fixes #8866 git-svn-id: http://svn.automattic.com/wordpress/trunk@11292 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php index 6b7cd1afc3..0bce403029 100644 --- a/wp-admin/includes/user.php +++ b/wp-admin/includes/user.php @@ -149,7 +149,7 @@ function edit_user( $user_id = 0 ) { } /* Check for "\" in password */ - if( strpos( " ".$pass1, "\\" ) ) + if ( false !== strpos( stripslashes($pass1), "\\" ) ) $errors->add( 'pass', __( 'ERROR: Passwords may not contain the character "\\".' ), array( 'form-field' => 'pass1' ) ); /* checking the password has been typed twice the same */