From 32073e7f2d49bed8cd3776f5b257dfaa6ba57f73 Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 16 Nov 2007 10:48:07 +0000 Subject: Backing out 1144 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1150 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-login.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wp-login.php') diff --git a/wp-login.php b/wp-login.php index 87f13df..9eacdb0 100644 --- a/wp-login.php +++ b/wp-login.php @@ -11,11 +11,11 @@ nocache_headers(); header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset')); -$schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; if ( defined('RELOCATE') ) { // Move flag is set if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) ) $_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] ); + $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; if ( dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_option('siteurl') ) update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) ); } @@ -270,7 +270,7 @@ default: login_header(__('Login')); ?> -
+