No weird chars in #1714

git-svn-id: https://develop.svn.wordpress.org/trunk@3075 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-11-14 09:59:47 +00:00
parent a313d7adfb
commit 9385ddc440
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.');