No weird chars in #1714
git-svn-id: http://svn.automattic.com/wordpress/trunk@3075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f059c4f049
commit
5a4c1ef911
|
@ -326,6 +326,10 @@ function edit_user($user_id = 0) {
|
|||
$errors['pass'] = __("<strong>ERROR</strong>: you typed your new password only once.");
|
||||
}
|
||||
|
||||
/* Check for "\" in password */
|
||||
if( strpos( " ".$pass1, "\\" ) )
|
||||
$errors['pass'] = __('<strong>ERROR</strong>: Passwords may not contain the character "\\".');
|
||||
|
||||
/* checking the password has been typed twice the same */
|
||||
if ($pass1 != $pass2)
|
||||
$errors['pass'] = __('<strong>ERROR</strong>: Please type the same password in the two password fields.');
|
||||
|
|
Loading…
Reference in New Issue