Commit f52dd530 authored by Franco Fichtner's avatar Franco Fichtner

vpn: another savemsg= that needs encoding

parent 35ec2adc
...@@ -85,14 +85,14 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -85,14 +85,14 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig = $_POST; $pconfig = $_POST;
if (isset($_POST['create'])) { if (isset($_POST['create'])) {
// create new phase1 entry // create new phase1 entry
header("Location: vpn_ipsec_phase1.php?mobile=true"); header(url_safe('Location: vpn_ipsec_phase1.php?mobile=true'));
exit; exit;
} elseif (isset($_POST['apply'])) { } elseif (isset($_POST['apply'])) {
// apply changes // apply changes
ipsec_configure(); ipsec_configure();
$savemsg = get_std_save_message(); $savemsg = get_std_save_message();
clear_subsystem_dirty('ipsec'); clear_subsystem_dirty('ipsec');
header("Location: vpn_ipsec_mobile.php?savemsg=".$savemsg); header(url_safe('Location: vpn_ipsec_mobile.php?savemsg=%s', $savemsg));
exit; exit;
} elseif (isset($_POST['submit'])) { } elseif (isset($_POST['submit'])) {
// save form changes // save form changes
...@@ -173,7 +173,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -173,7 +173,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config(); write_config();
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
header("Location: vpn_ipsec_mobile.php"); header(url_safe('Location: vpn_ipsec_mobile.php'));
exit; exit;
} }
} }
......
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