Commit 0d329e090f4b941e18da5497ed93cee844393a40
1 parent
0f70d1c4
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 | 78 | $url = "/login.php?loginAction=loginForm"; |
| 79 | 79 | |
| 80 | 80 | $redirect = $_SERVER[PHP_SELF]; |
| 81 | - if (strlen($redirect) > 1) { | |
| 81 | + if ((strlen($redirect) > 1) && ($redirect != "/control.php")) { | |
| 82 | 82 | $default->log->debug("checkSession:: redirect url=$redirect"); |
| 83 | 83 | // this session verification failure represents either the first visit to |
| 84 | 84 | // the site OR a session timeout etc. (in which case we still want to bounce | ... | ... |