Skip to content
Snippets Groups Projects
Commit 57491afa authored by lobo's avatar lobo
Browse files

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
parent f9e16e9a
No related branches found
No related tags found
No related merge requests found
......@@ -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.",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment