$options = array(
- 'offset' => $offset,
- 'sort' => $sort,
- 'limit' => $limit,
+ 'offset' => CRM_Utils_Rule::integer($offset),
+ 'sort' => CRM_Utils_Rule::string($sort),
+ 'limit' => CRM_Utils_Rule::integer($limit),
'return' => !empty($returnProperties) ? $returnProperties : NULL,
);
if (!$queryObject) {
}
elseif (in_array($n, $otherVars)) {}
else{
- $inputParams[$n] = $v;
+ $inputParams[$n] = CRM_Utils_Rule::string($v);
}
}
$options['return'] = array_merge($returnProperties, $legacyreturnProperties);