summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_out_edit.php
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/firewall_nat_out_edit.php
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/firewall_nat_out_edit.php')
-rw-r--r--usr/local/www/firewall_nat_out_edit.php4
1 files changed, 2 insertions, 2 deletions
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'])) {
OpenPOWER on IntegriCloud