mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-23 02:04:46 +02:00
Updated to $_REQUEST.
tested from my end.
This commit is contained in:
parent
bd9f4ba0a5
commit
f065842402
@ -4,14 +4,14 @@ header('Content-Type: application/json');
|
|||||||
if (!isset($_SESSION['mailcow_cc_role'])) {
|
if (!isset($_SESSION['mailcow_cc_role'])) {
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
if (isset($_GET['script'])) {
|
if (isset($_REQUEST['script'])) {
|
||||||
$sieve = new Sieve\SieveParser();
|
$sieve = new Sieve\SieveParser();
|
||||||
try {
|
try {
|
||||||
if (empty($_GET['script'])) {
|
if (empty($_REQUEST['script'])) {
|
||||||
echo json_encode(array('type' => 'danger', 'msg' => $lang['danger']['script_empty']));
|
echo json_encode(array('type' => 'danger', 'msg' => $lang['danger']['script_empty']));
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
$sieve->parse($_GET['script']);
|
$sieve->parse($_REQUEST['script']);
|
||||||
}
|
}
|
||||||
catch (Exception $e) {
|
catch (Exception $e) {
|
||||||
echo json_encode(array('type' => 'danger', 'msg' => $e->getMessage()));
|
echo json_encode(array('type' => 'danger', 'msg' => $e->getMessage()));
|
||||||
|
Loading…
Reference in New Issue
Block a user