From 664a1b2c2a0390752100bcf8875d3b935c761284 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Sep 2008 22:42:51 +0000 Subject: [PATCH] Improved register_globals --- includes/account.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/account.php b/includes/account.php index 3df187b..538870c 100644 --- a/includes/account.php +++ b/includes/account.php @@ -2204,7 +2204,8 @@ exit; } - if($oldid == 54 || ($id == 53 && $_REQUEST['action'] != "") || ($id == 54 && $_REQUEST['action'] != "" && + if($oldid == 54 || ($id == 53 && array_key_exists('action',$_REQUEST) && $_REQUEST['action'] != "") || + ($id == 54 && array_key_exists('action',$_REQUEST) && $_REQUEST['action'] != "" && $_REQUEST['action'] != "aliases" && $_REQUEST['action'] != "edit" && $_REQUEST['action'] != "add")) { $id = 53;