記錄:

CRM軟件| 客戶關係管理- Vtiger CRM

修正檔案位置: includes\http\Request.php

修正內容:

if ( ! in_array( $_SERVER['REQUEST_METHOD'], array( 'POST', 'GET' ) ) ) throw new Exception('Invalid request');

註解:

尚未知原始碼為何判斷非POST便輸出JSON 錯誤記錄顯示在前端頁面。

JSON:

{"success":false,"error":{"code":"Invalid request","message":"Invalid request","title":null}}

 

原始碼:
function validateWriteAccess($skipRequestTypeCheck = false) {
        if(!$skipRequestTypeCheck) {
            if ($_SERVER['REQUEST_METHOD'] != 'POST') throw new Exception('Invalid request');
        }
        $this->validateReadAccess();
        $this->validateCSRF();
        return true;
    }

創作者介紹
創作者 Kuma 熊本部 的頭像
KumaChen

Kuma 熊本部

KumaChen 發表在 痞客邦 留言(0) 人氣( 26 )