Ticket #7058: 7058.diff

File 7058.diff, 585 bytes (added by ryan, 4 years ago)

Use ORIG_PATH_INFO if PATH_INFO is not available

  • wp-settings.php

     
    6868        } 
    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']) ) { 
    7377                        if ( $_SERVER['PATH_INFO'] == $_SERVER['SCRIPT_NAME'] )