Ignore:
Timestamp:
2012/04/03 18:31:27 (10 years ago)
Author:
Seasoft
Message:

#1717 (URL のファイルパス部の取得は PHP_SELF の代わりに SCRIPT_NAME を使用する)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/helper/SC_Helper_Session.php

    r21638 r21704  
    218218        $masterData = new SC_DB_MasterData_Ex(); 
    219219        $arrExcludes = $masterData->getMasterData('mtb_auth_excludes'); 
    220         if (preg_match('|^' . ROOT_URLPATH . ADMIN_DIR . '|', $_SERVER['PHP_SELF'])) { 
     220        if (preg_match('|^' . ROOT_URLPATH . ADMIN_DIR . '|', $_SERVER['SCRIPT_NAME'])) { 
    221221            $is_auth = true; 
    222222 
    223223            foreach ($arrExcludes as $exclude) { 
    224                 if (preg_match('|^' . ROOT_URLPATH . ADMIN_DIR . $exclude . '|', $_SERVER['PHP_SELF'])) { 
     224                if (preg_match('|^' . ROOT_URLPATH . ADMIN_DIR . $exclude . '|', $_SERVER['SCRIPT_NAME'])) { 
    225225                    $is_auth = false; 
    226226                    break; 
Note: See TracChangeset for help on using the changeset viewer.