WordPress.org

Make WordPress Core

Changeset 14265


Ignore:
Timestamp:
04/28/10 02:20:32 (4 years ago)
Author:
nacin
Message:

Poka yoke for username sanitization during install. see #13159.

File:
1 edited

Legend:

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

    r14264 r14265  
    193193            // TODO: poka-yoke 
    194194            display_setup_form( __('you must provide a valid username.') ); 
     195            $error = true; 
     196        } elseif ( $user_name != sanitize_user( $user_name, true ) ) { 
     197            display_setup_form( __('the username you provided has invalid characters.') ); 
    195198            $error = true; 
    196199        } elseif ( $admin_password != $admin_password_check ) { 
Note: See TracChangeset for help on using the changeset viewer.