summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/vpn_ipsec_keys_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/vpn_ipsec_keys_edit.php')
-rw-r--r--src/usr/local/www/vpn_ipsec_keys_edit.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/usr/local/www/vpn_ipsec_keys_edit.php b/src/usr/local/www/vpn_ipsec_keys_edit.php
index c5c515c..bf6b24d 100644
--- a/src/usr/local/www/vpn_ipsec_keys_edit.php
+++ b/src/usr/local/www/vpn_ipsec_keys_edit.php
@@ -41,10 +41,7 @@ if (!is_array($config['ipsec']['mobilekey'])) {
ipsec_mobilekey_sort();
$a_secret = &$config['ipsec']['mobilekey'];
-if (is_numericint($_GET['id'])) {
- $id = $_GET['id'];
-}
-if (isset($_POST['id']) && is_numericint($_POST['id'])) {
+if (is_numericint($_POST['id'])) {
$id = $_POST['id'];
}
@@ -54,7 +51,7 @@ if (isset($id) && $a_secret[$id]) {
$pconfig['psk'] = $a_secret[$id]['pre-shared-key'];
}
-if ($_POST) {
+if ($_POST['save']) {
$userids = array();
foreach ($config['system']['user'] as $uid => $user) {
$userids[$user['name']] = $uid;
OpenPOWER on IntegriCloud