diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-02-13 10:47:47 -0500 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-02-13 10:48:25 -0500 |
commit | 4611e283323f0eaf44bc4ded4ad4f7cf9d8cdbe1 (patch) | |
tree | 44a60f536cefad3d50cefccf780c98094e217d1a /src/usr/local/www/system_authservers.php | |
parent | ac4fe723a521e35a29fb55075cdfdb2230d74aa2 (diff) | |
download | pfsense-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_authservers.php')
-rw-r--r-- | src/usr/local/www/system_authservers.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/usr/local/www/system_authservers.php b/src/usr/local/www/system_authservers.php index 11e061a..8a3c671 100644 --- a/src/usr/local/www/system_authservers.php +++ b/src/usr/local/www/system_authservers.php @@ -96,7 +96,7 @@ if ($_REQUEST['ajax']) { exit; } -$id = $_POST['id']; +$id = $_REQUEST['id']; if (!is_array($config['system']['authserver'])) { $config['system']['authserver'] = array(); @@ -114,9 +114,9 @@ if (!is_array($config['ca'])) { $a_ca =& $config['ca']; -$act = $_POST['act']; +$act = $_REQUEST['act']; -if ($act == "del") { +if ($_POST['act'] == "del") { if (!$a_server[$_POST['id']]) { pfSenseHeader("system_authservers.php"); @@ -446,7 +446,7 @@ if (!($act == "new" || $act == "edit" || $input_errors)) { <td><?=htmlspecialchars($server['host'])?></td> <td> <?php if ($i < (count($a_server) - 1)): ?> - <a class="fa fa-pencil" title="<?=gettext("Edit server"); ?>" href="system_authservers.php?act=edit&id=<?=$i?>" usepost></a> + <a class="fa fa-pencil" title="<?=gettext("Edit server"); ?>" href="system_authservers.php?act=edit&id=<?=$i?>"></a> <a class="fa fa-trash" title="<?=gettext("Delete server")?>" href="system_authservers.php?act=del&id=<?=$i?>" usepost></a> <?php endif?> </td> @@ -459,7 +459,7 @@ if (!($act == "new" || $act == "edit" || $input_errors)) { </div> <nav class="action-buttons"> - <a href="?act=new" class="btn btn-success btn-sm" usepost> + <a href="?act=new" class="btn btn-success btn-sm"> <i class="fa fa-plus icon-embed-btn"></i> <?=gettext("Add")?> </a> |