From 3e6113af2d3e5a24e806cb9cd067ff658d8245a6 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 1 Sep 2008 22:06:26 +0000 Subject: [PATCH] Improved register_globals --- www/disputes.php | 2 ++ www/gpg.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/www/disputes.php b/www/disputes.php index 18c28ee..53689dd 100644 --- a/www/disputes.php +++ b/www/disputes.php @@ -20,6 +20,8 @@ loadem("account"); + $type=""; if(array_key_exists('type',$_REQUEST)) $type=$_REQUEST['type']; + if($type == "reallyemail") { $emailid = intval($_SESSION['_config']['emailid']); diff --git a/www/gpg.php b/www/gpg.php index 4d5c047..f5c3ea9 100644 --- a/www/gpg.php +++ b/www/gpg.php @@ -500,7 +500,7 @@ if(1) } $id = intval($id); - $_SESSION['_config']['cert'] = intval($cert); + $_SESSION['_config']['cert'] = intval($_REQUEST['cert']); showheader(_("Welcome to CAcert.org")); includeit($id, "gpg");