summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_routes.php
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-02-13 10:47:47 -0500
committerSteve Beaver <sbeaver@netgate.com>2017-02-13 10:48:25 -0500
commit4611e283323f0eaf44bc4ded4ad4f7cf9d8cdbe1 (patch)
tree44a60f536cefad3d50cefccf780c98094e217d1a /src/usr/local/www/system_routes.php
parentac4fe723a521e35a29fb55075cdfdb2230d74aa2 (diff)
downloadpfsense-4611e283323f0eaf44bc4ded4ad4f7cf9d8cdbe1.zip
pfsense-4611e283323f0eaf44bc4ded4ad4f7cf9d8cdbe1.tar.gz
Revisions to GET/POST conversion limiting POSTs to save, apply, and delete functions
Diffstat (limited to 'src/usr/local/www/system_routes.php')
-rw-r--r--src/usr/local/www/system_routes.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/usr/local/www/system_routes.php b/src/usr/local/www/system_routes.php
index 070e13d..c04cca3 100644
--- a/src/usr/local/www/system_routes.php
+++ b/src/usr/local/www/system_routes.php
@@ -125,7 +125,9 @@ if (isset($_POST['del_x'])) {
exit;
}
-} else if ($_POST['act'] == "toggle") {
+}
+
+if ($_POST['act'] == "toggle") {
if ($a_routes[$_POST['id']]) {
$do_update_config = true;
if (isset($a_routes[$_POST['id']]['disabled'])) {
@@ -151,7 +153,9 @@ if (isset($_POST['del_x'])) {
exit;
}
}
-} else {
+}
+
+if($_POST['save']) {
/* yuck - IE won't send value attributes for image buttons, while Mozilla does - so we use .x/.y to find move button clicks instead... */
unset($movebtn);
foreach ($_POST as $pn => $pd) {
@@ -266,9 +270,9 @@ foreach ($a_routes as $i => $route):
<?=htmlspecialchars($route['descr'])?>
</td>
<td>
- <a href="system_routes_edit.php?id=<?=$i?>" class="fa fa-pencil" title="<?=gettext('Edit route')?>" usepost></a>
+ <a href="system_routes_edit.php?id=<?=$i?>" class="fa fa-pencil" title="<?=gettext('Edit route')?>"></a>
- <a href="system_routes_edit.php?dup=<?=$i?>" class="fa fa-clone" title="<?=gettext('Copy route')?>" usepost></a>
+ <a href="system_routes_edit.php?dup=<?=$i?>" class="fa fa-clone" title="<?=gettext('Copy route')?>"></a>
<?php if (isset($route['disabled'])) {
?>
@@ -289,7 +293,7 @@ foreach ($a_routes as $i => $route):
</div>
<nav class="action-buttons">
- <a href="system_routes_edit.php" role="button" class="btn btn-success btn-sm" usepost>
+ <a href="system_routes_edit.php" role="button" class="btn btn-success btn-sm">
<i class="fa fa-plus icon-embed-btn"></i>
<?=gettext("Add")?>
</a>
OpenPOWER on IntegriCloud