diff --git a/includes/account.php b/includes/account.php
index a513840..c9c9cca 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -734,10 +734,10 @@
{
$id = 12;
showheader(_("My CAcert.org Account!"));
- if(is_array($revokeid))
+ if(is_array($_REQUEST['revokeid']))
{
echo _("Now renewing the following certificates:")."
\n";
- foreach($revokeid as $id)
+ foreach($_REQUEST['revokeid'] as $id)
{
$id = intval($id);
echo "Processing request $id:
";
@@ -900,10 +900,10 @@
if($oldid == 5 && array_key_exists('renew',$_REQUEST) && $_REQUEST['renew'] != "")
{
showheader(_("My CAcert.org Account!"));
- if(is_array($revokeid))
+ if(is_array($_REQUEST['revokeid']))
{
echo _("Now renewing the following certificates:")."
\n";
- foreach($revokeid as $id)
+ foreach($_REQUEST['revokeid'] as $id)
{
$id = intval($id);
$query = "select *,UNIX_TIMESTAMP(`revoked`) as `revoke` from `emailcerts`
@@ -964,10 +964,10 @@
{
$id = 5;
showheader(_("My CAcert.org Account!"));
- if(is_array($revokeid))
+ if(is_array($_REQUEST['revokeid']))
{
echo _("Now revoking the following certificates:")."
\n";
- foreach($revokeid as $id)
+ foreach($_REQUEST['revokeid'] as $id)
{
$id = intval($id);
$query = "select *,UNIX_TIMESTAMP(`revoked`) as `revoke` from `emailcerts`
@@ -1448,11 +1448,11 @@
if($oldid == 18 && array_key_exists('renew',$_REQUEST) && $_REQUEST['renew'] != "")
{
showheader(_("My CAcert.org Account!"));
- if(is_array($revokeid))
+ if(is_array($_REQUEST['revokeid']))
{
$id = 18;
echo _("Now renewing the following certificates:")."
\n";
- foreach($revokeid as $id)
+ foreach($_REQUEST['revokeid'] as $id)
{
echo "Renewing certificate #$id ...\n
";
$id = intval($id);
@@ -1511,10 +1511,10 @@
{
$id = 18;
showheader(_("My CAcert.org Account!"));
- if(is_array($revokeid))
+ if(is_array($_REQUEST['revokeid']))
{
echo _("Now revoking the following certificates:")."
\n";
- foreach($revokeid as $id)
+ foreach($_REQUEST['revokeid'] as $id)
{
$id = intval($id);
$query = "select *,UNIX_TIMESTAMP(`revoked`) as `revoke` from `orgemailcerts`, `org`
@@ -1729,10 +1729,10 @@
if($oldid == 22 && array_key_exists('renew',$_REQUEST) && $_REQUEST['renew'] != "")
{
showheader(_("My CAcert.org Account!"));
- if(is_array($revokeid))
+ if(is_array($_REQUEST['revokeid']))
{
echo _("Now renewing the following certificates:")."
\n";
- foreach($revokeid as $id)
+ foreach($_REQUEST['revokeid'] as $id)
{
$id = intval($id);
$query = "select *,UNIX_TIMESTAMP(`orgdomaincerts`.`revoked`) as `revoke` from
@@ -1795,10 +1795,10 @@
if($oldid == 22 && array_key_exists('revoke',$_REQUEST) && $_REQUEST['revoke'] != "")
{
showheader(_("My CAcert.org Account!"));
- if(is_array($revokeid))
+ if(is_array($_REQUEST['revokeid']))
{
echo _("Now revoking the following certificates:")."
\n";
- foreach($revokeid as $id)
+ foreach($_REQUEST['revokeid'] as $id)
{
$id = intval($id);
$query = "select *,UNIX_TIMESTAMP(`orgdomaincerts`.`revoked`) as `revoke` from