Changeset 23670


Ignore:
Timestamp:
2014/10/28 17:02:31 (6 years ago)
Author:
shinichi_takahashi
Message:

#2645 管理者権限のアクセス制限が効いていない の修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13_3/data/class/SC_Session.php

    r23655 r23670  
    7171            $masterData = new SC_DB_MasterData_Ex(); 
    7272            $admin_path = strtolower(preg_replace('/\/+/', '/', $_SERVER['SCRIPT_NAME']));             
     73            $admin_path = preg_replace('/' . preg_quote(ROOT_URLPATH, '/') . '/', '/', $admin_path); 
     74            $admin_path = preg_replace('/' . preg_quote(ADMIN_DIR, '/') . '/', 'admin/', $admin_path); 
    7375            $arrPERMISSION = array_change_key_case($masterData->getMasterData('mtb_permission')); 
    7476            if (isset($arrPERMISSION[$admin_path])) {  
Note: See TracChangeset for help on using the changeset viewer.