Allow quotes in passwords. fixes #8866

git-svn-id: https://develop.svn.wordpress.org/trunk@11292 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-05-12 05:21:32 +00:00
parent 5f93d0344c
commit bbf835ab0c

View File

@ -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', __( '<strong>ERROR</strong>: Passwords may not contain the character "\\".' ), array( 'form-field' => 'pass1' ) );
/* checking the password has been typed twice the same */