From 7e34cc3a1175dcd6122d27d5c512a84c1a1ee35b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 20 Jan 2005 23:44:57 +0000 Subject: [PATCH] Try to fix some of the siteurl stomping. Bug 678. git-svn-id: https://develop.svn.wordpress.org/trunk@2110 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-login.php b/wp-login.php index 9d3fd56ad2..d9c190e197 100644 --- a/wp-login.php +++ b/wp-login.php @@ -10,7 +10,7 @@ header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); // If someone has moved WordPress let's try to detect it -if ( isset( $_SERVER['PATH_INFO'] ) ) +if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) ) $_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] ); if ( dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_settings('siteurl') )