summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-12-31 13:23:21 +0100
committerErmal <eri@pfsense.org>2013-12-31 13:23:21 +0100
commit2006d7a4f097b07cda66a3888789f846f809daf7 (patch)
tree3051f4a819b1803ff0cab4153762493091a728c4 /usr/local/www/firewall_rules_edit.php
parentba1c86d950bd8b588387ac445bdc87f2490e3a6f (diff)
downloadpfsense-2006d7a4f097b07cda66a3888789f846f809daf7.zip
pfsense-2006d7a4f097b07cda66a3888789f846f809daf7.tar.gz
Generate a tracker id for the filter rules for now. Maybe for nat rules as well?
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 99d6172..05cbe94 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -531,6 +531,10 @@ if ($_POST) {
if (!$input_errors) {
$filterent = array();
$filterent['id'] = $_POST['ruleid']>0?$_POST['ruleid']:'';
+ if (empty($_POST['tracker']))
+ $filterent['tracker'] = (int)microtime(true);
+ else
+ $filterent['tracker'] = $_POST['tracker'];
$filterent['type'] = $_POST['type'];
if (isset($_POST['interface'] ))
$filterent['interface'] = $_POST['interface'];
OpenPOWER on IntegriCloud