From f0658424024fb48b34c3867b6d763273888a2fa1 Mon Sep 17 00:00:00 2001 From: Phoenix Eve Aspacio Date: Wed, 11 Dec 2024 10:03:47 +0800 Subject: [PATCH] Updated to $_REQUEST. tested from my end. --- data/web/inc/ajax/sieve_validation.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/web/inc/ajax/sieve_validation.php b/data/web/inc/ajax/sieve_validation.php index eb421b4a4..99be1f0c0 100644 --- a/data/web/inc/ajax/sieve_validation.php +++ b/data/web/inc/ajax/sieve_validation.php @@ -4,14 +4,14 @@ header('Content-Type: application/json'); if (!isset($_SESSION['mailcow_cc_role'])) { exit(); } -if (isset($_GET['script'])) { +if (isset($_REQUEST['script'])) { $sieve = new Sieve\SieveParser(); try { - if (empty($_GET['script'])) { + if (empty($_REQUEST['script'])) { echo json_encode(array('type' => 'danger', 'msg' => $lang['danger']['script_empty'])); exit(); } - $sieve->parse($_GET['script']); + $sieve->parse($_REQUEST['script']); } catch (Exception $e) { echo json_encode(array('type' => 'danger', 'msg' => $e->getMessage()));