summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2016-02-09 15:16:56 -0800
committerNOYB <Al_Stu@Frontier.com>2016-02-09 19:04:21 -0800
commit3e17a55d7d685065dffdc38791a3373646885f1c (patch)
tree55af2b153cb542b7df342f57938dd580de3416f0 /src/usr/local/www/firewall_rules_edit.php
parentd280ec9bd0b560a5b4013f793ce81c79ee13b2a8 (diff)
downloadpfsense-3e17a55d7d685065dffdc38791a3373646885f1c.zip
pfsense-3e17a55d7d685065dffdc38791a3373646885f1c.tar.gz
Add a comment about the floating rules copy/dup "hack" so the purpose will remain evident in the future.
Diffstat (limited to 'src/usr/local/www/firewall_rules_edit.php')
-rw-r--r--src/usr/local/www/firewall_rules_edit.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php
index 715d8e6..17bf822 100644
--- a/src/usr/local/www/firewall_rules_edit.php
+++ b/src/usr/local/www/firewall_rules_edit.php
@@ -913,6 +913,8 @@ if ($_POST) {
if (is_numeric($after)) {
array_splice($a_filter, $after+1, 0, array($filterent));
+ // For copy/dup the $if var is taken from the rule.
+ // In the case of floating rules that could be anything. But never "FloatingRules" that is needed.
if (isset($pconfig['floating'])) {
$tmpif = 'FloatingRules';
} else {
OpenPOWER on IntegriCloud