Making WordPress.org


Ignore:
Timestamp:
06/30/2021 12:25:52 AM (3 years ago)
Author:
dd32
Message:

Login: URIEncode emails/usernames in the HTTP request to preserve all characters.

Follow up to r11073

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-restapi.php

    r10941 r11081  
    3333
    3434function wporg_login_rest_username_exists( $request ) {
    35     $login = trim( $request['login'] );
     35    $login = trim( urldecode( $request['login'] ) );
    3636
    3737    $validate_signup = wpmu_validate_user_signup( $login, 'placeholder@placeholder.domain' );
     
    7373
    7474function wporg_login_rest_email_in_use( $request ) {
    75     $email = trim( $request['email'] );
     75    $email = trim( urldecode( $request['email'] ) );
    7676
    7777    if ( $user = get_user_by( 'email', $email ) ) {
Note: See TracChangeset for help on using the changeset viewer.