WordPress.org

Make WordPress Core

Ticket #18658: 18658-user.diff

File 18658-user.diff, 521 bytes (added by theandystratton, 3 years ago)

Patch for wp-admin/includes/user.php

  • wp-admin/includes/user.php

     
    8989        } 
    9090 
    9191        if ( isset( $_POST['email'] )) 
    92                 $user->user_email = sanitize_text_field( $_POST['email'] ); 
     92                $user->user_email = sanitize_text_field( stripslashes( $_POST['email'] ) ); 
    9393        if ( isset( $_POST['url'] ) ) { 
    9494                if ( empty ( $_POST['url'] ) || $_POST['url'] == 'http://' ) { 
    9595                        $user->user_url = '';