瀏覽代碼

[API] Unset POST when only GET is allowed

ntimo 6 年之前
父節點
當前提交
416d5a12f8
共有 1 個文件被更改,包括 1 次插入0 次删除
  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',
               'type' => 'error',
               'msg' => 'only GET method is allowed'
               'msg' => 'only GET method is allowed'
           ));
           ));
+          unset($_POST);
           die();
           die();
         }
         }
         switch ($category) {
         switch ($category) {