From: Donald A. Lobo Date: Sat, 13 Apr 2013 18:42:48 +0000 (-0700) Subject: CRM-12347, eliminate debug short circuit X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=57491afa816ad9b61c5cc52b72c56166e76fcabb;p=civicrm-core.git 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 --- 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.",