mirror of https://github.com/MISP/MISP
fix: [appController:harvestParameters] Always support page and limit parameters while harvesting parameters
There is not point in not always supporting these two parameterspull/9529/head
parent
a0e8bed72a
commit
c5737d6f67
|
@ -995,6 +995,14 @@ class AppController extends Controller
|
|||
*/
|
||||
protected function _harvestParameters($options, &$exception = null, $data = [])
|
||||
{
|
||||
if (!empty($options['paramArray'])) {
|
||||
if (!in_array('page', $options['paramArray'])) {
|
||||
$options['paramArray'][] = 'page';
|
||||
}
|
||||
if (!in_array('limit', $options['paramArray'])) {
|
||||
$options['paramArray'][] = 'limit';
|
||||
}
|
||||
}
|
||||
$request = $options['request'] ?? $this->request;
|
||||
if ($request->is('post')) {
|
||||
if (empty($request->data)) {
|
||||
|
|
Loading…
Reference in New Issue