Browse Source

[API] Unset POST when only GET is allowed

ntimo 6 years ago
parent
commit
416d5a12f8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      data/web/json_api.php

+ 1 - 0
data/web/json_api.php

@@ -221,6 +221,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
               'type' => 'error',
               'msg' => 'only GET method is allowed'
           ));
+          unset($_POST);
           die();
         }
         switch ($category) {