Remove the check statement as not relevant to apiv4
authorSeamus Lee <seamuslee001@gmail.com>
Sat, 30 Nov 2019 22:42:41 +0000 (09:42 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 4 Dec 2019 19:59:08 +0000 (06:59 +1100)
CRM/Api4/Page/AJAX.php

index f40d0dbd58476d7542f49b7c636c6260710c2465..39c8febe29428bdbe3db4eceb8513aa7e9b24c77 100644 (file)
@@ -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.",