net/pptp: wrap redirects with url_safe()

PR: https://github.com/opnsense/core/issues/1168
This commit is contained in:
Franco Fichtner
2016-09-02 09:47:56 +02:00
parent 8a95d87629
commit c956532182
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
} elseif (!empty($_POST['apply'])) {
if_pptp_configure_do();
clear_subsystem_dirty('pptpusers');
header("Location: vpn_pptp_users.php");
header(url_safe('Location: vpn_pptp_users.php'));
exit;
}
+1 -1
View File
@@ -133,7 +133,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
pptpd_users_sort();
write_config();
if_pptp_configure_do();
header("Location: vpn_pptp_users.php");
header(url_safe('Location: vpn_pptp_users.php'));
exit;
}
}