Commit bb9624734ec61a313640f9f8e264a4d80c16f355

Authored by michael
1 parent dbe9d1f2

don't save redirect value if we're just redirecting to the controller


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@199 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 1 additions and 1 deletions
lib/control.inc
@@ -78,7 +78,7 @@ function checkSession() { @@ -78,7 +78,7 @@ function checkSession() {
78 $url = "/login.php?loginAction=loginForm"; 78 $url = "/login.php?loginAction=loginForm";
79 79
80 $redirect = $_SERVER[PHP_SELF]; 80 $redirect = $_SERVER[PHP_SELF];
81 - if (strlen($redirect) > 1) { 81 + if ((strlen($redirect) > 1) && ($redirect != "/control.php")) {
82 $default->log->debug("checkSession:: redirect url=$redirect"); 82 $default->log->debug("checkSession:: redirect url=$redirect");
83 // this session verification failure represents either the first visit to 83 // this session verification failure represents either the first visit to
84 // the site OR a session timeout etc. (in which case we still want to bounce 84 // the site OR a session timeout etc. (in which case we still want to bounce