From: Seamus Lee Date: Sat, 30 Nov 2019 22:42:41 +0000 (+1100) Subject: Remove the check statement as not relevant to apiv4 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=520430dbe7c2d8774b4f92ac736ab483fc775bf1;p=civicrm-core.git Remove the check statement as not relevant to apiv4 --- diff --git a/CRM/Api4/Page/AJAX.php b/CRM/Api4/Page/AJAX.php index f40d0dbd58..39c8febe29 100644 --- a/CRM/Api4/Page/AJAX.php +++ b/CRM/Api4/Page/AJAX.php @@ -45,8 +45,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.",