diff options
Diffstat (limited to 'includes/pages/admin_log.php')
-rw-r--r-- | includes/pages/admin_log.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/includes/pages/admin_log.php b/includes/pages/admin_log.php index 356a6402..d45a232b 100644 --- a/includes/pages/admin_log.php +++ b/includes/pages/admin_log.php @@ -5,13 +5,11 @@ function admin_log_title() { } function admin_log() { - if (isset($_POST['keyword'])) { - $filter = $_POST['keyword']; - $log_entries_source = LogEntries_filter($_POST['keyword']); - } else { - $filter = ""; - $log_entries_source = LogEntries(); + $filter = ""; + if (isset($_REQUEST['keyword'])) { + $filter = strip_request_item('keyword'); } + $log_entries_source = LogEntries_filter($_POST['keyword']); $log_entries = []; foreach ($log_entries_source as $log_entry) { |