From 8a87dd4254a0e6694041a307d6edd35d80c6700b Mon Sep 17 00:00:00 2001 From: ntimo Date: Sat, 5 Oct 2019 18:14:36 +0200 Subject: [PATCH] [API] Removed unsets that are not needed --- data/web/json_api.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/data/web/json_api.php b/data/web/json_api.php index 0efc0bcd..4c490c0d 100644 --- a/data/web/json_api.php +++ b/data/web/json_api.php @@ -213,7 +213,6 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u 'type' => 'error', 'msg' => 'route not found' )); - unset($_POST); exit(); } break; @@ -228,7 +227,6 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u 'type' => 'error', 'msg' => 'only GET method is allowed' )); - unset($_POST); exit(); } switch ($category) { @@ -1193,7 +1191,6 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u 'type' => 'error', 'msg' => 'route not found' )); - unset($_POST); exit(); } break; @@ -1347,7 +1344,6 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u 'type' => 'error', 'msg' => 'route not found' )); - unset($_POST); exit(); } break; @@ -1358,7 +1354,6 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u 'type' => 'error', 'msg' => 'route not found' )); - unset($_POST); exit(); } }