Project

General

Profile

« Previous | Next » 

Revision 2ae50326

Added by Renato Botelho about 11 years ago

Unbreak 'add rule on top of the list' allowing after param to be -1

View differences:

usr/local/www/firewall_nat_edit.php
61 61
if (isset($_POST['id']) && is_numericint($_POST['id']))
62 62
	$id = $_POST['id'];
63 63

  
64
if (is_numericint($_GET['after']))
64
if (is_numericint($_GET['after']) || $_GET['after'] == "-1")
65 65
	$after = $_GET['after'];
66
if (isset($_POST['after']) && is_numericint($_GET['after']))
66
if (isset($_POST['after']) && (is_numericint($_POST['after']) || $_POST['after'] == "-1"))
67 67
	$after = $_POST['after'];
68 68

  
69 69
if (isset($_GET['dup']) && is_numericint($_GET['dup'])) {

Also available in: Unified diff