diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-02-10 12:22:50 -0500 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-02-10 12:22:50 -0500 |
commit | 7603794b910e6f4bd8b76c71d89e818b7b1ac044 (patch) | |
tree | d1564a576fefe9d558e4aa2659d6f4ac142f2d02 /src/usr/local/www/vpn_ipsec_keys_edit.php | |
parent | 3312b65f74e3c18d22c0bb0f68c999036f12b275 (diff) | |
download | pfsense-7603794b910e6f4bd8b76c71d89e818b7b1ac044.zip pfsense-7603794b910e6f4bd8b76c71d89e818b7b1ac044.tar.gz |
GET/POST conversion vpn_ipsec*
Diffstat (limited to 'src/usr/local/www/vpn_ipsec_keys_edit.php')
-rw-r--r-- | src/usr/local/www/vpn_ipsec_keys_edit.php | 7 |
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; |