From 3c97d4f82432ee83162985bf235dc9415162e676 Mon Sep 17 00:00:00 2001 From: donncha Date: Wed, 14 Nov 2007 18:04:31 +0000 Subject: Allow login via a secure login form git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1144 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 9eacdb0..87f13df 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')); ?> -
+