Commit b4c76b3b100efbc9c1413d20a9509aecfa114d8e

Authored by Neil Blakey-Milner
1 parent d224b123

If the kt_cancel array has a numeric key (ie, due to [], ie, an empty

url), then redirect to the base of the dispatcher.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4908 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 4 additions and 0 deletions
lib/dispatcher.inc.php
... ... @@ -28,6 +28,10 @@ class KTDispatcher {
28 28 $var = $_REQUEST[$this->cancel_var];
29 29 if (is_array($var)) {
30 30 $keys = array_keys($var);
  31 + if ($keys[0] == 0) {
  32 + redirect($_SERVER['PHP_SELF']);
  33 + exit(0);
  34 + }
31 35 redirect($keys[0]);
32 36 exit(0);
33 37 }
... ...