From 1e81935b32ac1ef45c1842336c9fe13842693f5b Mon Sep 17 00:00:00 2001 From: nbm Date: Sat, 27 Nov 2004 06:29:32 +0000 Subject: [PATCH] Don't rely on register_globals. --- control.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/control.php b/control.php index 3de6b38..05365ff 100644 --- a/control.php +++ b/control.php @@ -22,10 +22,12 @@ require_once("./config/dmsDefaults.php"); // page start // ------------------------------- +$action = $_REQUEST['action']; + // check the session, but don't redirect if the check fails if (checkSessionAndRedirect(false)) { //get around the problem with search - if (strcmp($fForStandardSearch, "yes") == 0) { + if (strcmp($_REQUEST['fForStandardSearch'], "yes") == 0) { $action = "standardSearch"; } else if (!isset($action)) { // session check succeeds, so default action should be the dashboard if no action was specified -- libgit2 0.21.4