Make WordPress Core


Ignore:
Timestamp:
05/24/2010 07:18:30 PM (14 years ago)
Author:
markjaquith
Message:

stripslashes() the site name before passing to populate_network(), not in it. We should always expect unslashed data. reverts [14754]. fixes #13448

File:
1 edited

Legend:

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

    r14825 r14845  
    382382    $subdomain_install = !allow_subdomain_install() ? false : (bool) $_POST['subdomain_install'];
    383383    if ( ! network_domain_check() ) {
    384         $result = populate_network( 1, get_clean_basedomain(), sanitize_email( $_POST['email'] ), $_POST['sitename'], $base, $subdomain_install );
     384        $result = populate_network( 1, get_clean_basedomain(), sanitize_email( $_POST['email'] ), stripslashes( $_POST['sitename'] ), $base, $subdomain_install );
    385385        if ( is_wp_error( $result ) ) {
    386386            if ( 1 == count( $result->get_error_codes() ) && 'no_wildcard_dns' == $result->get_error_code() )
Note: See TracChangeset for help on using the changeset viewer.