summaryrefslogtreecommitdiffstats
path: root/wpmu-settings.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-01-09 10:17:07 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-01-09 10:17:07 +0000
commit90888943466530c65823eac7e07e5a6f1c8ab5d5 (patch)
treebc68ec883f259e6419d3b964c2b927fc77bc46b6 /wpmu-settings.php
parentf56b0c5ec8a4b99b40d46d99625c55d37bae37ed (diff)
downloadwordpress-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.php3
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 );