Commit e241c4951c20920a8749293ec5b396a797fb9e96
1 parent
8f07de81
Handle extension-less mode (somewhat).
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3902 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
2 deletions
lib/session/control.inc
| ... | ... | @@ -192,8 +192,9 @@ function checkSession($bDownload = false, $bHandleNoAccess = true) { |
| 192 | 192 | if (checkSessionAndRedirect(true, $bDownload)) { |
| 193 | 193 | $default->log->debug("control.inc: print the session variables: " . arrayToString($_SESSION)); |
| 194 | 194 | // the session is cool, now check if we access to this page |
| 195 | - $default->log->debug("control.inc: page=" . $_SERVER['PHP_SELF'] . " ? " . $_SESSION["pageAccess"][$_SERVER['PHP_SELF']]); | |
| 196 | - if ($_SESSION["pageAccess"][$_SERVER['PHP_SELF']]) { | |
| 195 | + $pageName = KTUtil::getRequestScriptName($_SERVER); | |
| 196 | + $default->log->debug("control.inc: page=" . $pageName . " ? " . $_SESSION["pageAccess"][$pageName]); | |
| 197 | + if ($_SESSION["pageAccess"][$pageName]) { | |
| 197 | 198 | return true; |
| 198 | 199 | } else { |
| 199 | 200 | if ($bHandleNoAccess === true) { | ... | ... |