X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/f1c0988bd7f213a40ce3cfcf6d7522bd2fd12afa..70c7fd5765720621553b3ddaff1009c795f49a76:/quarantine.php diff --git a/quarantine.php b/quarantine.php index 28bd2bd..b6703d8 100644 --- a/quarantine.php +++ b/quarantine.php @@ -25,6 +25,7 @@ if (is_object($mail) && true == $util->authorized($mail->recipient)) { $secret_id = $mail->secret_id; $recipient = $mail->recipient; + $sender = $mail->sender; if ($request == 'release') { $amavisserver = $CFG->amavisd_db_host; @@ -56,7 +57,7 @@ } else if ($request == 'delete') { $query[] = "UPDATE msgrcpt SET rs = 'D' WHERE mail_id = '$mail_id'"; } else if ($request == 'block') { - $query[] = $recipient; + $query[] = $sender; } else { error("Unknown operation [$request]"); exit; @@ -94,7 +95,7 @@ } exit; } - header('Location: index.php'); + header('Location: qtadmin.php'); } else if ($loggedIn && $request == 'purge') { $marked = unserialize($_SESSION['marked']); unset($_SESSION['marked']); @@ -117,9 +118,9 @@ error("The following messages was not purged [$str], contact administrator"); exit; } - header('Location: index.php'); + header('Location: qtadmin.php'); } else if ($loggedIn) { - header('Location: index.php'); + header('Location: qtadmin.php'); } else { header('Location: auth.php'); }