mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
System / Log - hard limit results to 9999 entries for grid output. closes https://github.com/opnsense/core/pull/5842
This commit is contained in:
parent
b651b05e49
commit
058aedc61e
@ -59,7 +59,8 @@ class LogController extends ApiControllerBase
|
||||
return ["status" => "ok"];
|
||||
} else {
|
||||
// fetch query parameters (limit results to prevent out of memory issues)
|
||||
$itemsPerPage = $this->request->getPost('rowCount') == -1 ? 5000 : $this->request->getPost('rowCount', 'int', 9999);
|
||||
$itemsPerPage = $this->request->getPost('rowCount', 'int', -1);
|
||||
$itemsPerPage = min($itemsPerPage == -1 ? 5000 : $itemsPerPage, 9999);
|
||||
$currentPage = $this->request->getPost('current', 'int', 1);
|
||||
|
||||
if ($this->request->getPost('searchPhrase', 'string', '') != "") {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user