From bbf835ab0c6569d49b922339826beeaa2cec2be8 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 12 May 2009 05:21:32 +0000 Subject: [PATCH] Allow quotes in passwords. fixes #8866 git-svn-id: https://develop.svn.wordpress.org/trunk@11292 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 */