Commit db5faebf authored by Ad Schellevis's avatar Ad Schellevis

(legacy) missing redirects after post in vpn_ipsec.php

parent deb6f79d
...@@ -60,6 +60,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -60,6 +60,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$config['ipsec']['enable'] = !empty($_POST['enable']) ? true : false; $config['ipsec']['enable'] = !empty($_POST['enable']) ? true : false;
write_config(); write_config();
vpn_ipsec_configure(); vpn_ipsec_configure();
header("Location: vpn_ipsec.php");
exit;
} elseif (isset($_POST['del_x'])) { } elseif (isset($_POST['del_x'])) {
/* delete selected p1 entries */ /* delete selected p1 entries */
if (isset($_POST['p1entry']) && count($_POST['p1entry'])) { if (isset($_POST['p1entry']) && count($_POST['p1entry'])) {
...@@ -69,6 +71,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -69,6 +71,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (write_config()) { if (write_config()) {
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
} }
header("Location: vpn_ipsec.php");
exit;
} }
} elseif (isset($_POST['delp2_x'])) { } elseif (isset($_POST['delp2_x'])) {
/* delete selected p2 entries */ /* delete selected p2 entries */
...@@ -79,6 +83,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -79,6 +83,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (write_config()) { if (write_config()) {
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
} }
header("Location: vpn_ipsec.php");
exit;
} }
} else { } else {
// move, delete, toggle items by id. // move, delete, toggle items by id.
...@@ -217,7 +223,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -217,7 +223,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
} }
} }
header("Location: vpn_ipsec.php");
exit;
} }
} }
// form data // form data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment