Ticket #4853: wp-setting2.diff
File wp-setting2.diff, 848 bytes (added by , 18 years ago) |
---|
-
wp-settings.php
41 41 if (empty($_SERVER['PATH_INFO'])) 42 42 $_SERVER['REQUEST_URI'] = substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')) . '/'; 43 43 else 44 // Some IIS + PHP configurations puts the script-name in the path-info (No need to append it twice) 45 if ($_SERVER['PATH_INFO']==$_SERVER['SCRIPT_NAME']) 46 $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; 47 else 44 48 $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . $_SERVER['PATH_INFO']; 45 49 46 50 // Append the query string if it exists and isn't null 47 51 if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) { 48 52 $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];