diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-01-09 10:17:07 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-01-09 10:17:07 +0000 |
commit | 90888943466530c65823eac7e07e5a6f1c8ab5d5 (patch) | |
tree | bc68ec883f259e6419d3b964c2b927fc77bc46b6 /wpmu-settings.php | |
parent | f56b0c5ec8a4b99b40d46d99625c55d37bae37ed (diff) | |
download | wordpress-mu-90888943466530c65823eac7e07e5a6f1c8ab5d5.tar.gz wordpress-mu-90888943466530c65823eac7e07e5a6f1c8ab5d5.tar.xz wordpress-mu-90888943466530c65823eac7e07e5a6f1c8ab5d5.zip |
Die if a port number is in the URL
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@834 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wpmu-settings.php')
-rw-r--r-- | wpmu-settings.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wpmu-settings.php b/wpmu-settings.php index a25c708..c7a48fa 100644 --- a/wpmu-settings.php +++ b/wpmu-settings.php @@ -7,6 +7,9 @@ $wpmuBaseTablePrefix = $table_prefix; $domain = addslashes( $_SERVER['HTTP_HOST'] );
if( substr( $domain, 0, 4 ) == 'www.' )
$domain = substr( $domain, 4 );
+if( strpos( $domain, ':' ) ) {
+ die( 'WPMU only works without the port number in the URL.' );
+}
$domain = preg_replace('/:.*$/', '', $domain); // Strip ports
if( substr( $domain, -1 ) == '.' )
$domain = substr( $domain, 0, -1 );
|