Skip to content

Commit

Permalink
Add 'human' param to global whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Jan 11, 2017
1 parent a05b8bb commit d16e541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/AbstractEndpoint.php
Expand Up @@ -212,7 +212,7 @@ private function checkUserParams($params)
return; //no params, just return.
}

$whitelist = array_merge($this->getParamWhitelist(), array('client', 'custom', 'filter_path'));
$whitelist = array_merge($this->getParamWhitelist(), array('client', 'custom', 'filter_path', 'human'));

$invalid = array_diff(array_keys($params), $whitelist);
if (count($invalid) > 0) {
Expand Down

0 comments on commit d16e541

Please sign in to comment.