net/pppoe: redirect with url_safe()

PR: https://github.com/opnsense/core/issues/1168
This commit is contained in:
Franco Fichtner
2016-09-02 09:47:51 +02:00
parent 183cd7714a
commit 8a95d87629
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
filter_configure();
clear_subsystem_dirty('vpnpppoe');
header("Location: vpn_pppoe.php");
header(url_safe('Location: vpn_pppoe.php'));
exit;
} elseif (!empty($_POST['act']) && $_POST['act'] == "del") {
if (!empty($a_pppoes[$_POST['id']])) {
+1 -1
View File
@@ -220,7 +220,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config();
mark_subsystem_dirty('vpnpppoe');
file_put_contents('/tmp/.vpn_pppoe.apply', serialize($toapplylist));
header("Location: vpn_pppoe.php");
header(url_safe('Location: vpn_pppoe.php'));
exit;
}
}