mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/pppoe: redirect with url_safe()
PR: https://github.com/opnsense/core/issues/1168
This commit is contained in:
@@ -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']])) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user