net/pppoe: favour absolute redirects

This commit is contained in:
Franco Fichtner
2016-09-02 10:11:38 +02:00
parent 097614d6ef
commit 1e58639cc3
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(url_safe('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(url_safe('Location: vpn_pppoe.php'));
header(url_safe('Location: /vpn_pppoe.php'));
exit;
}
}