WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-settings.php

    r8211 r8566  
    6969    else
    7070    {
     71        // Use ORIG_PATH_INFO if there is no PATH_INFO
     72        if ( !isset($_SERVER['PATH_INFO']) && isset($_SERVER['ORIG_PATH_INFO']) )
     73            $_SERVER['PATH_INFO'] = $_SERVER['ORIG_PATH_INFO'];
     74
    7175        // Some IIS + PHP configurations puts the script-name in the path-info (No need to append it twice)
    7276        if ( isset($_SERVER['PATH_INFO']) ) {
     
    418422    if ( is_array($current_plugins) ) {
    419423        foreach ($current_plugins as $plugin) {
    420             if ('' != $plugin && file_exists(WP_PLUGIN_DIR . '/' . $plugin))
     424            if ( '' != $plugin && 0 == validate_file($plugin) && file_exists(WP_PLUGIN_DIR . '/' . $plugin) )
    421425                include_once(WP_PLUGIN_DIR . '/' . $plugin);
    422426        }
Note: See TracChangeset for help on using the changeset viewer.