diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-08-08 08:20:29 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-08-08 08:20:29 +0000 |
commit | 06e0231f01012f9bc24b0be53aa8e7f6a2ae6cb9 (patch) | |
tree | ab8345e129784ae1807bf25b26e042efca3bfa75 | |
parent | 855fcbfa56a5600465e8cdd0b8d8d5250a85f679 (diff) | |
download | wordpress-mu-06e0231f01012f9bc24b0be53aa8e7f6a2ae6cb9.tar.gz wordpress-mu-06e0231f01012f9bc24b0be53aa8e7f6a2ae6cb9.tar.xz wordpress-mu-06e0231f01012f9bc24b0be53aa8e7f6a2ae6cb9.zip |
Do some cleanup of the basedomain, fixes #391, props drmike
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1024 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r-- | index-install.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/index-install.php b/index-install.php index 18eafdf..2ce3868 100644 --- a/index-install.php +++ b/index-install.php @@ -354,9 +354,11 @@ function step3() { $base .= "/"; } $domain = $wpdb->escape( $_POST[ 'basedomain' ] ); + $domain = str_replace( 'http://', '', $domain ); if( substr( $domain, 0, 4 ) == 'www.' ) $domain = substr( $domain, 4 ); - + if( strpos( $domain, '/' ) ) + $domain = substr( $domain, 0, strpos( $domain, '/' ) ); $email = $wpdb->escape( $_POST[ 'email' ] ); $weblog_title = $wpdb->escape( $_POST[ 'weblog_title' ] ); |