From 7f9a679fa8350d2bc19d323fb39662046128f666 Mon Sep 17 00:00:00 2001 From: heper Date: Thu, 5 Nov 2015 18:27:53 +0100 Subject: proposed fix for Bug #5375 value passed by checkbox was "yes" when checked, instead of "Block" / "Pass" --- src/usr/local/www/diag_logs_filter.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/usr/local/www/diag_logs_filter.php b/src/usr/local/www/diag_logs_filter.php index 00c38ba..43d8825 100644 --- a/src/usr/local/www/diag_logs_filter.php +++ b/src/usr/local/www/diag_logs_filter.php @@ -121,7 +121,6 @@ if ($filterlogentries_submit) { $actpass = getGETPOSTsettingvalue('actpass', null); $actblock = getGETPOSTsettingvalue('actblock', null); - $filterfieldsarray['act'] = str_replace(" ", " ", trim($actpass . " " . $actblock)); $filterfieldsarray['act'] = $filterfieldsarray['act'] != "" ? $filterfieldsarray['act'] : 'All'; $filterfieldsarray['time'] = getGETPOSTsettingvalue('filterlogentries_time', null); @@ -238,7 +237,8 @@ if (!isset($config['syslog']['rawfilter'])) { // Advanced log filter form 'actpass', 'Pass', 'Pass', - in_arrayi('Pass', $Include_Act) + in_arrayi('Pass', $Include_Act), + 'Pass' )); $group->add(new Form_Input( @@ -277,7 +277,8 @@ if (!isset($config['syslog']['rawfilter'])) { // Advanced log filter form 'actblock', 'Block', 'Block', - in_arrayi('Block', $Include_Act) + in_arrayi('Block', $Include_Act), + 'Block' )); $group->add(new Form_Input( -- cgit v1.1