WordPress.org

Make WordPress Core

Ticket #39915: 39915-email-unsafe.diff

File 39915-email-unsafe.diff, 538 bytes (added by jeremyfelt, 2 years ago)
  • src/wp-includes/ms-functions.php

     
    354354
    355355        $is_email_address_unsafe = false;
    356356
    357         if ( $banned_names && is_array( $banned_names ) ) {
     357        if ( $banned_names && is_array( $banned_names ) && false !== strpos( $user_email, '@', 1 ) ) {
    358358                $banned_names = array_map( 'strtolower', $banned_names );
    359359                $normalized_email = strtolower( $user_email );
    360360