summaryrefslogtreecommitdiffstats
path: root/modules-available/syslog/page.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2021-05-04 17:32:26 +0200
committerSimon Rettberg2021-05-11 14:50:11 +0200
commit1e8329986ef4d06a9bb7550e24f4dacc7715fb5b (patch)
tree67e13b41650992d2266d42c88b91489a65840eae /modules-available/syslog/page.inc.php
parent[systemstatus] Fix displaying VM store usage if using internal storage (diff)
downloadslx-admin-1e8329986ef4d06a9bb7550e24f4dacc7715fb5b.tar.gz
slx-admin-1e8329986ef4d06a9bb7550e24f4dacc7715fb5b.tar.xz
slx-admin-1e8329986ef4d06a9bb7550e24f4dacc7715fb5b.zip
[main+Session] Move session from /tmp/ to session table
Diffstat (limited to 'modules-available/syslog/page.inc.php')
-rw-r--r--modules-available/syslog/page.inc.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/modules-available/syslog/page.inc.php b/modules-available/syslog/page.inc.php
index 6868994e..410a1ed7 100644
--- a/modules-available/syslog/page.inc.php
+++ b/modules-available/syslog/page.inc.php
@@ -26,14 +26,19 @@ class Page_SysLog extends Page
Util::redirect('?do=syslog');
}
if (Request::isPost()) {
- $search = Request::any('search');
- $filter = Request::any('filter');
+ $search = Request::any('search', false, 'string');
+ $filter = Request::any('filter', false, 'string');
$not = Request::any('not', false, 'bool');
$machineuuid = Request::any('machineuuid');
- Session::set('log_search', $search);
- Session::set('log_filter', $filter);
- Session::set('log_not', $not);
- Session::save();
+ if (empty($search)) {
+ $search = false;
+ }
+ if (empty($filter)) {
+ $filter = false;
+ }
+ Session::set('log_search', $search, false);
+ Session::set('log_filter', $filter, false);
+ Session::set('log_not', $not, false);
Util::redirect('?do=syslog&' . http_build_query(compact('search', 'filter', 'not', 'machineuuid')));
}
User::assertPermission('*');