summaryrefslogtreecommitdiffstats
path: root/wpmu-settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'wpmu-settings.php')
-rw-r--r--wpmu-settings.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpmu-settings.php b/wpmu-settings.php
index 08790fd..ff08b18 100644
--- a/wpmu-settings.php
+++ b/wpmu-settings.php
@@ -5,7 +5,7 @@ if( $current_site && $current_blog )
// depreciated
$wpmuBaseTablePrefix = $table_prefix;
-$domain = addslashes( $_SERVER['HTTP_HOST'] );
+$domain = strtolower( addslashes( $_SERVER['HTTP_HOST'] ) );
if( substr( $domain, 0, 4 ) == 'www.' )
$domain = substr( $domain, 4 );
if( strpos( $domain, ':' ) ) {
@@ -26,6 +26,7 @@ if( substr( $domain, -1 ) == '.' )
$path = preg_replace( '|([a-z0-9-]+.php.*)|', '', $_SERVER['REQUEST_URI'] );
$path = str_replace ( '/wp-admin/', '/', $path );
$path = preg_replace( '|(/[a-z0-9-]+?/).*|', '$1', $path );
+$path = strtolower( $path );
function wpmu_current_site() {
global $wpdb, $current_site, $domain, $path, $sites;