stripslashes() the site name before passing to populate_network(), not in it. We should always expect unslashed data. reverts [14754]. fixes #13448
git-svn-id: https://develop.svn.wordpress.org/trunk@14845 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
56e498c517
commit
2a90aeb2a6
@ -689,7 +689,7 @@ Thanks!
|
||||
--The Team @ SITE_NAME' );
|
||||
|
||||
$sitemeta = array(
|
||||
'site_name' => stripslashes($site_name),
|
||||
'site_name' => $site_name,
|
||||
'admin_email' => $site_user->user_email,
|
||||
'admin_user_id' => $site_user->ID,
|
||||
'registration' => 'none',
|
||||
|
@ -381,7 +381,7 @@ if ( $_POST ) {
|
||||
$hostname = get_clean_basedomain();
|
||||
$subdomain_install = !allow_subdomain_install() ? false : (bool) $_POST['subdomain_install'];
|
||||
if ( ! network_domain_check() ) {
|
||||
$result = populate_network( 1, get_clean_basedomain(), sanitize_email( $_POST['email'] ), $_POST['sitename'], $base, $subdomain_install );
|
||||
$result = populate_network( 1, get_clean_basedomain(), sanitize_email( $_POST['email'] ), stripslashes( $_POST['sitename'] ), $base, $subdomain_install );
|
||||
if ( is_wp_error( $result ) ) {
|
||||
if ( 1 == count( $result->get_error_codes() ) && 'no_wildcard_dns' == $result->get_error_code() )
|
||||
network_step2( $result );
|
||||
|
Loading…
Reference in New Issue
Block a user