diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-08-22 12:32:53 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-08-22 12:32:53 +0000 |
commit | 9df561c132b1862893f33cbc676f0ab18b99bee7 (patch) | |
tree | 03a88734e138e147a3c35e6061442ef1a5b37deb /wpmu-settings.php | |
parent | f83af9331d9af909067016b8e9b2d5d53a6b7a82 (diff) | |
download | wordpress-mu-9df561c132b1862893f33cbc676f0ab18b99bee7.tar.gz wordpress-mu-9df561c132b1862893f33cbc676f0ab18b99bee7.tar.xz wordpress-mu-9df561c132b1862893f33cbc676f0ab18b99bee7.zip |
Strip 443 port from secure urls, fixes #714, props axelseaa
git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1428 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 3b52a02..8639c9b 100644 --- a/wpmu-settings.php +++ b/wpmu-settings.php @@ -12,6 +12,9 @@ if( strpos( $domain, ':' ) ) { if( substr( $domain, -3 ) == ':80' ) {
$domain = substr( $domain, 0, -3 );
$_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -3 );
+ } elseif( substr( $domain, -4 ) == ':443' ) {
+ $domain = substr( $domain, 0, -4 );
+ $_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -4 );
} else {
die( 'WPMU only works without the port number in the URL.' );
}
|