mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 18:08:09 +01:00
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:
parent
629775df07
commit
d7cfd506a4
@ -149,7 +149,7 @@ function edit_user( $user_id = 0 ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Check for "\" in password */
|
/* 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' ) );
|
$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 */
|
/* checking the password has been typed twice the same */
|
||||||
|
Loading…
Reference in New Issue
Block a user