Allow quotes in passwords. fixes #8866

git-svn-id: http://svn.automattic.com/wordpress/trunk@11292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-05-12 05:21:32 +00:00
parent 629775df07
commit d7cfd506a4
1 changed files with 1 additions and 1 deletions

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 */