Make WordPress Core

Changeset 676


Ignore:
Timestamp:
01/01/2004 07:09:15 PM (21 years ago)
Author:
michelvaldrighi
Message:

take request_uri from http_server_vars, to be safe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r672 r676  
    2222
    2323$wpdb->hide_errors();
    24 if (!$wpdb->get_row("SELECT * FROM $tableoptions LIMIT 1") && !strstr($REQUEST_URI, 'install.php')) {
     24if (!$wpdb->get_row("SELECT * FROM $tableoptions LIMIT 1") && !strstr($HTTP_SERVER_VARS['REQUEST_URI'], 'install.php')) {
    2525    die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>.");
    2626}
     
    4242// get_settings() wherever these are needed OR
    4343// accessing a single global $all_settings var
    44 if (!strstr($REQUEST_URI, 'install.php')) {
     44if (!strstr($HTTP_SERVER_VARS['REQUEST_URI'], 'install.php')) {
    4545    $siteurl = get_settings('siteurl');
    4646    // "When trying to design a foolproof system,
Note: See TracChangeset for help on using the changeset viewer.