Make WordPress Core


Ignore:
Timestamp:
03/16/2005 09:09:11 PM (20 years ago)
Author:
ryan
Message:

Trim user info when adding new user. http://mosquito.wordpress.org/view.php?id=1110 Props: gzfelix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/users.php

    r2437 r2449  
    2525    check_admin_referer();
    2626
    27     $user_login     = wp_specialchars($_POST['user_login']);
     27    $user_login     = wp_specialchars(trim($_POST['user_login']));
    2828    $pass1          = $_POST['pass1'];
    2929    $pass2          = $_POST['pass2'];
    30     $user_email     = wp_specialchars($_POST['email']);
    31     $user_firstname = wp_specialchars($_POST['firstname']);
    32     $user_lastname  = wp_specialchars($_POST['lastname']);
    33     $user_uri       = wp_specialchars($_POST['uri']);
     30    $user_email     = wp_specialchars(trim($_POST['email']));
     31    $user_firstname = wp_specialchars(trim($_POST['firstname']));
     32    $user_lastname  = wp_specialchars(trim($_POST['lastname']));
     33    $user_uri       = wp_specialchars(trim($_POST['uri']));
    3434       
    3535    /* checking that username has been typed */
Note: See TracChangeset for help on using the changeset viewer.