From 57491afa816ad9b61c5cc52b72c56166e76fcabb Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Sat, 13 Apr 2013 11:42:48 -0700 Subject: [PATCH] CRM-12347, eliminate debug short circuit ---------------------------------------- * CRM-12347: Rebuild Smart Group Cache errors out if limit=50 configured in parameters http://issues.civicrm.org/jira/browse/CRM-12347 --- CRM/Utils/REST.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/REST.php b/CRM/Utils/REST.php index e67815b227..a55ca67d66 100644 --- a/CRM/Utils/REST.php +++ b/CRM/Utils/REST.php @@ -394,7 +394,7 @@ class CRM_Utils_REST { return $result; } - if ($_SERVER['REQUEST_METHOD'] == 'GET' && strtolower(substr( $args[2],0,3)) != 'get' && 0) { + if ($_SERVER['REQUEST_METHOD'] == 'GET' && strtolower(substr( $args[2],0,3)) != 'get') { // get only valid for non destructive methods require_once 'api/v3/utils.php'; return civicrm_api3_create_error("SECURITY: All requests that modify the database must be http POST, not GET.", -- 2.25.1