summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2016-02-09 03:06:56 -0800
committerNOYB <Al_Stu@Frontier.com>2016-02-09 03:06:56 -0800
commit51869e0e682bffd574e3912653f99c15fece8485 (patch)
tree59884289b5113c663758e8b16cb472c430e1ec60 /src/usr/local
parentccc62f13b6f599b932238929e96f5d945be9d515 (diff)
downloadpfsense-51869e0e682bffd574e3912653f99c15fece8485.zip
pfsense-51869e0e682bffd574e3912653f99c15fece8485.tar.gz
A hack for floating rules copy/dup so that separators get moved.
The interface var $if is set to the interface set in the float rule.
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/firewall_rules_edit.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php
index 85ec11f..715d8e6 100644
--- a/src/usr/local/www/firewall_rules_edit.php
+++ b/src/usr/local/www/firewall_rules_edit.php
@@ -913,11 +913,17 @@ if ($_POST) {
if (is_numeric($after)) {
array_splice($a_filter, $after+1, 0, array($filterent));
+ if (isset($pconfig['floating'])) {
+ $tmpif = 'FloatingRules';
+ } else {
+ $tmpif = $if;
+ }
+
// get rule index within interface
- $ifridx = ifridx($if, $after);
+ $ifridx = ifridx($tmpif, $after);
// Update the separators
- $a_separators = &$config['filter']['separator'][strtolower($if)];
+ $a_separators = &$config['filter']['separator'][strtolower($tmpif)];
for ($idx=0; isset($a_separators['sep' . $idx]); $idx++ ) {
$seprow = substr($a_separators['sep' . $idx]['row']['0'], 2);
OpenPOWER on IntegriCloud