summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-04-29 14:56:37 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-04-29 14:56:37 -0300
commit2f7f11900ad8475eadcefa5b687b9f1ac52f3042 (patch)
treeea5095cca10c0909fdea37dac4312e03bf8c80eb /usr/local/www
parentcd79de00a4a1d7e3fa313154782bdcd9a0bdc68d (diff)
downloadpfsense-2f7f11900ad8475eadcefa5b687b9f1ac52f3042.zip
pfsense-2f7f11900ad8475eadcefa5b687b9f1ac52f3042.tar.gz
Unbreak 'add rule on top of the list' allowing after param to be -1
Diffstat (limited to 'usr/local/www')
-rw-r--r--usr/local/www/firewall_nat_edit.php4
-rw-r--r--usr/local/www/firewall_nat_out_edit.php4
-rw-r--r--usr/local/www/firewall_rules_edit.php4
3 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php
index d2fe8bc..969ed80 100644
--- a/usr/local/www/firewall_nat_edit.php
+++ b/usr/local/www/firewall_nat_edit.php
@@ -61,9 +61,9 @@ if (is_numericint($_GET['id']))
if (isset($_POST['id']) && is_numericint($_POST['id']))
$id = $_POST['id'];
-if (is_numericint($_GET['after']))
+if (is_numericint($_GET['after']) || $_GET['after'] == "-1")
$after = $_GET['after'];
-if (isset($_POST['after']) && is_numericint($_GET['after']))
+if (isset($_POST['after']) && (is_numericint($_POST['after']) || $_POST['after'] == "-1"))
$after = $_POST['after'];
if (isset($_GET['dup']) && is_numericint($_GET['dup'])) {
diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php
index 98255d0..ffc41a3 100644
--- a/usr/local/www/firewall_nat_out_edit.php
+++ b/usr/local/www/firewall_nat_out_edit.php
@@ -63,9 +63,9 @@ if (is_numericint($_GET['id']))
if (isset($_POST['id']) && is_numericint($_POST['id']))
$id = $_POST['id'];
-if (is_numericint($_GET['after']))
+if (is_numericint($_GET['after']) || $_GET['after'] == "-1")
$after = $_GET['after'];
-if (isset($_POST['after']) && is_numericint($_GET['after']))
+if (isset($_POST['after']) && (is_numericint($_POST['after']) || $_POST['after'] == "-1"))
$after = $_POST['after'];
if (isset($_GET['dup']) && is_numericint($_GET['dup'])) {
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index bb286fe..207e183 100644
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -109,9 +109,9 @@ if (is_numericint($_GET['id']))
if (isset($_POST['id']) && is_numericint($_POST['id']))
$id = $_POST['id'];
-if (is_numericint($_GET['after']))
+if (is_numericint($_GET['after']) || $_GET['after'] == "-1")
$after = $_GET['after'];
-if (isset($_POST['after']) && is_numericint($_GET['after']))
+if (isset($_POST['after']) && (is_numericint($_POST['after']) || $_POST['after'] == "-1"))
$after = $_POST['after'];
if (isset($_GET['dup']) && is_numericint($_GET['dup'])) {
OpenPOWER on IntegriCloud