WordPress.org

Make WordPress Core

Ticket #18658: 18658-wp-login.diff

File 18658-wp-login.diff, 554 bytes (added by theandystratton, 6 years ago)

Patch for wp-login.php

  • wp-login.php

     
    494494        $user_email = '';
    495495        if ( $http_post ) {
    496496                $user_login = $_POST['user_login'];
    497                 $user_email = $_POST['user_email'];
     497                $user_email = stripslashes($_POST['user_email']);
    498498                $errors = register_new_user($user_login, $user_email);
    499499                if ( !is_wp_error($errors) ) {
    500500                        $redirect_to = !empty( $_POST['redirect_to'] ) ? $_POST['redirect_to'] : 'wp-login.php?checkemail=registered';