mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Unbreak 'add rule on top of the list' allowing after param to be -1
This commit is contained in:
parent
2db29614d2
commit
2ae503264c
@ -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'])) {
|
||||
|
||||
@ -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'])) {
|
||||
|
||||
@ -86,9 +86,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'])) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user