From 58d8b1383d376b6320ec5d45a4272098b839f2e7 Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Fri, 28 May 2010 16:40:55 +0000 Subject: [PATCH] will the real host please step forward, fixes #13594 git-svn-id: http://svn.automattic.com/wordpress/trunk@15037 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/network.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/network.php b/wp-admin/network.php index aed7b2a40d..4c9b03b289 100644 --- a/wp-admin/network.php +++ b/wp-admin/network.php @@ -43,7 +43,7 @@ function network_domain_check() { * @return bool Whether subdomain install is allowed */ function allow_subdomain_install() { - $domain = preg_replace( '|https?://[^/]|', '', get_option( 'siteurl' ) ); + $domain = preg_replace( '|https?://([^/]+)|', '$1', get_option( 'siteurl' ) ); if( false !== strpos( $domain, '/' ) || 'localhost' == $domain || preg_match( '|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|', $domain ) ) return false;