From 489f6828d8a1fbcb8c871ef8eaede0d075aa1ee5 Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 9 Jul 2012 19:32:09 +0000 Subject: [PATCH] Only obey the RELOCATE move flag if it evaluates to true. props TomAuger, JustinSainton, fixes #20636. git-svn-id: http://core.svn.wordpress.org/trunk@21251 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-login.php b/wp-login.php index 50088db9e6..87a0a668bf 100644 --- a/wp-login.php +++ b/wp-login.php @@ -361,7 +361,7 @@ nocache_headers(); header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset')); -if ( defined('RELOCATE') ) { // Move flag is set +if ( defined( 'RELOCATE' ) && 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'] );