we should never use $RESUEST_URI, but access it with $_SERVER

git-svn-id: https://develop.svn.wordpress.org/trunk@845 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
michelvaldrighi 2004-02-08 16:10:28 +00:00
parent 94054cd0ee
commit 61c0ce4048
1 changed files with 4 additions and 2 deletions

View File

@ -549,8 +549,10 @@ function url_to_postid($url = '') {
/* Options functions */
function get_settings($setting) {
global $wpdb, $cache_settings, $use_cache, $REQUEST_URI;
if (strstr($REQUEST_URI, 'install.php')) return false;
global $wpdb, $cache_settings, $use_cache;
if (strstr($_SERVER['REQUEST_URI'], 'install.php')) {
return false;
}
if ((empty($cache_settings)) OR (!$use_cache)) {
$settings = get_alloptions();
$cache_settings = $settings;