Make WordPress Core

Ticket #8866: patch.diff

File patch.diff, 748 bytes (added by gavinbrook, 17 years ago)
  • user.php

     
    148148                        $errors->add( 'pass', __( '<strong>ERROR</strong>: Please enter your password twice.' ), array( 'form-field' => 'pass2' ) );
    149149        }
    150150
    151         /* Check for "\" in password */
    152         if( strpos( " ".$pass1, "\\" ) )
    153                 $errors->add( 'pass', __( '<strong>ERROR</strong>: Passwords may not contain the character "\\".' ), array( 'form-field' => 'pass1' ) );
    154 
    155151        /* checking the password has been typed twice the same */
    156152        if ( $pass1 != $pass2 )
    157153                $errors->add( 'pass', __( '<strong>ERROR</strong>: Please enter the same password in the two password fields.' ), array( 'form-field' => 'pass1' ) );