Commit a072566bf33d51f06d27c7c2e8afa29d45bc26b3

Authored by Neil Blakey-Milner
1 parent d85f2c21

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 22 // page start
23 23 // -------------------------------
24 24  
  25 +$action = $_REQUEST['action'];
  26 +
25 27 // check the session, but don't redirect if the check fails
26 28 if (checkSessionAndRedirect(false)) {
27 29 //get around the problem with search
28   - if (strcmp($fForStandardSearch, "yes") == 0) {
  30 + if (strcmp($_REQUEST['fForStandardSearch'], "yes") == 0) {
29 31 $action = "standardSearch";
30 32 } else if (!isset($action)) {
31 33 // session check succeeds, so default action should be the dashboard if no action was specified
... ...