Commit 1e81935b32ac1ef45c1842336c9fe13842693f5b
1 parent
3e8d4ff2
Don't rely on register_globals.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3007 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
1 deletions
control.php
| @@ -22,10 +22,12 @@ require_once("./config/dmsDefaults.php"); | @@ -22,10 +22,12 @@ require_once("./config/dmsDefaults.php"); | ||
| 22 | // page start | 22 | // page start |
| 23 | // ------------------------------- | 23 | // ------------------------------- |
| 24 | 24 | ||
| 25 | +$action = $_REQUEST['action']; | ||
| 26 | + | ||
| 25 | // check the session, but don't redirect if the check fails | 27 | // check the session, but don't redirect if the check fails |
| 26 | if (checkSessionAndRedirect(false)) { | 28 | if (checkSessionAndRedirect(false)) { |
| 27 | //get around the problem with search | 29 | //get around the problem with search |
| 28 | - if (strcmp($fForStandardSearch, "yes") == 0) { | 30 | + if (strcmp($_REQUEST['fForStandardSearch'], "yes") == 0) { |
| 29 | $action = "standardSearch"; | 31 | $action = "standardSearch"; |
| 30 | } else if (!isset($action)) { | 32 | } else if (!isset($action)) { |
| 31 | // session check succeeds, so default action should be the dashboard if no action was specified | 33 | // session check succeeds, so default action should be the dashboard if no action was specified |