diff options
Diffstat (limited to 'usr/local/www/system_routes_edit.php')
-rwxr-xr-x | usr/local/www/system_routes_edit.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/system_routes_edit.php b/usr/local/www/system_routes_edit.php index 780348d..e2457b8 100755 --- a/usr/local/www/system_routes_edit.php +++ b/usr/local/www/system_routes_edit.php @@ -41,6 +41,10 @@ $id = $_GET['id']; if (isset($_POST['id'])) $id = $_POST['id']; +if (isset($_GET['dup'])) { + $id = $_GET['dup']; +} + if (isset($id) && $a_routes[$id]) { $pconfig['interface'] = $a_routes[$id]['interface']; list($pconfig['network'],$pconfig['network_subnet']) = @@ -49,6 +53,9 @@ if (isset($id) && $a_routes[$id]) { $pconfig['descr'] = $a_routes[$id]['descr']; } +if (isset($_GET['dup'])) + unset($id); + if ($_POST) { unset($input_errors); |