summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-02 20:35:22 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-02 20:35:22 +0000
commit8be60f21ed20285ec605ed589b42761e19535232 (patch)
tree3bd018aa20afc159426ccf10f88bdcf79d7a1eff /usr
parent038aa597e271ec1938e6490a566d284c4610764e (diff)
downloadpfsense-8be60f21ed20285ec605ed589b42761e19535232.zip
pfsense-8be60f21ed20285ec605ed589b42761e19535232.tar.gz
Do not update os type unless its defined in the rule.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index c592984..37c6021 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -141,7 +141,8 @@ if (isset($id) && $a_filter[$id]) {
$pconfig['srcmask'], $pconfig['srcnot'],
$pconfig['srcbeginport'], $pconfig['srcendport']);
- $pconfig['os'] = $a_filter[$id]['os'];
+ if($a_filter[$id]['os'] <> "")
+ $pconfig['os'] = $a_filter[$id]['os'];
address_to_pconfig($a_filter[$id]['destination'], $pconfig['dst'],
$pconfig['dstmask'], $pconfig['dstnot'],
OpenPOWER on IntegriCloud