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:
matt 2005-11-14 09:59:47 +00:00
parent f059c4f049
commit 5a4c1ef911
1 changed files with 4 additions and 0 deletions

View File

@ -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.');