Make WordPress Core

Changeset 57711

Timestamp:
02/26/2024 10:41:50 AM (5 months ago)
Author:
swissspidy
Message:

Login and Registration: Slash email address when updating an existing user.

Addresses an issue with password reset keys when the email address contains special characters such as apostrophes.

Props emirpprime, rajinsharwar, fnpen, hellofromTonya, oglekler, nicolefurlan.
Fixes #52529.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r57312 r57711  
    20972097        }
    20982098
     2099
     2100
     2101
    20992102        // Hashed in wp_update_user(), plaintext if called directly.
    21002103        $user_pass = ! empty( $userdata['user_pass'] ) ? $userdata['user_pass'] : $old_user_data->user_pass;
  • trunk/tests/phpunit/tests/auth.php

    r56804 r57711  
    839839    }
    840840
     841
     842
     843
     844
     845
     846
     847
     848
     849
     850
     851
     852
     853
     854
     855
     856
     857
     858
     859
     860
     861
     862
    841863    public function data_application_passwords_can_use_capability_checks_to_determine_feature_availability() {
    842864        return array(
Note: See TracChangeset for help on using the changeset viewer.