From 66f5d609435ad2bf017f67dabf48578f75f8de10 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sun, 1 Dec 2019 09:42:41 +1100 Subject: [PATCH] Remove the check statement as not relevant to apiv4 --- CRM/Api4/Page/AJAX.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Api4/Page/AJAX.php b/CRM/Api4/Page/AJAX.php index 635aef4de0..8102c30c7f 100644 --- a/CRM/Api4/Page/AJAX.php +++ b/CRM/Api4/Page/AJAX.php @@ -61,8 +61,7 @@ class CRM_Api4_Page_AJAX extends CRM_Core_Page { CRM_Utils_System::civiExit(); } if ($_SERVER['REQUEST_METHOD'] == 'GET' && - strtolower(substr($this->urlPath[4], 0, 3)) != 'get' && - strtolower($this->urlPath[4] != 'check')) { + strtolower(substr($this->urlPath[4], 0, 3)) != 'get') { $response = [ 'error_code' => 400, 'error_message' => "SECURITY: All requests that modify the database must be http POST, not GET.", -- 2.25.1