From 775d38ebed5a07dd29cbd2ee245be657746b047e Mon Sep 17 00:00:00 2001 From: systopia Date: Mon, 5 May 2014 11:25:19 +0200 Subject: [PATCH] Xaviers fix for CRM-14506 --- CRM/Utils/REST.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/REST.php b/CRM/Utils/REST.php index 6d501ddf46..d4d15d2cfe 100644 --- a/CRM/Utils/REST.php +++ b/CRM/Utils/REST.php @@ -248,7 +248,8 @@ class CRM_Utils_REST { if (!empty($r)) { $q = $r; } - if (!empty($q)) { + $entity = CRM_Utils_array::value('entity', $requestParams); + if ( empty($entity) && !empty($q)) { $args = explode('/', $q); // If the function isn't in the civicrm namespace, reject the request. if ($args[0] != 'civicrm') { -- 2.25.1