Commit 32767ad5 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

Revert "(ids) style fix",...

Revert "(ids) style fix", https://github.com/opnsense/core/commit/aaa0ddafe1179cebc68146bdc3c30b8b90c564b8 can cause "Allowed memory size of ... bytes exhausted", better to set a sane default max here.

This reverts commit aaa0ddaf.

(cherry picked from commit ed4c923c)
(cherry picked from commit f4e6e6f4)
parent a287c337
......@@ -238,8 +238,8 @@ class ServiceController extends ApiControllerBase
$filter = new Filter();
$filter->add('query', new QueryFilter());
// fetch query parameters
$itemsPerPage = $this->request->getPost('rowCount', 'int', -1);
// fetch query parameters (limit results to prevent out of memory issues)
$itemsPerPage = $this->request->getPost('rowCount', 'int', 9999);
$currentPage = $this->request->getPost('current', 'int', 1);
if ($this->request->getPost('searchPhrase', 'string', '') != "") {
......
......@@ -73,8 +73,8 @@ class SettingsController extends ApiControllerBase
$filter->add('query', new QueryFilter());
// fetch query parameters
$itemsPerPage = $this->request->getPost('rowCount', 'int', -1);
// fetch query parameters (limit results to prevent out of memory issues)
$itemsPerPage = $this->request->getPost('rowCount', 'int', 9999);
$currentPage = $this->request->getPost('current', 'int', 1);
if ($this->request->hasPost('sort') && is_array($this->request->getPost("sort"))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment