mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
filter: direction 'any' wasn't respected in floating rule
This commit is contained in:
parent
cdedd9a553
commit
895e30d1bf
@ -2297,11 +2297,15 @@ function filter_generate_user_rule(&$FilterIflist, $rule)
|
||||
} else {
|
||||
$aline['type'] = $type . " ";
|
||||
}
|
||||
if (isset($rule['floating']) && $rule['floating'] == "yes" && $rule['direction'] != "any") {
|
||||
$aline['direction'] = " " . $rule['direction'] . " ";
|
||||
if (isset($rule['floating']) && $rule['floating'] == 'yes') {
|
||||
if ($rule['direction'] != 'any') {
|
||||
$aline['direction'] = " {$rule['direction']} ";
|
||||
} elseif ($$rule['direction'] == 'any') {
|
||||
$aline['direction'] = '';
|
||||
}
|
||||
} else {
|
||||
/* ensure the direction is in */
|
||||
$aline['direction'] = " in ";
|
||||
/* ensure the direction is 'in' */
|
||||
$aline['direction'] = ' in ';
|
||||
}
|
||||
if (isset($rule['log'])) {
|
||||
$aline['log'] = "log ";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user