mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/l2tp: favour absolute redirects
This commit is contained in:
@@ -151,7 +151,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
|
||||
write_config();
|
||||
if_l2tp_configure_do();
|
||||
header(url_safe('Location: vpn_l2tp.php'));
|
||||
header(url_safe('Location: /vpn_l2tp.php'));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -159,8 +159,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
$service_hook = 'l2tpd';
|
||||
legacy_html_escape_form_data($pconfig);
|
||||
include("head.inc");
|
||||
?>
|
||||
|
||||
?>
|
||||
<body>
|
||||
<?php include("fbegin.inc"); ?>
|
||||
<section class="page-content-main">
|
||||
|
||||
@@ -49,7 +49,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
} elseif (!empty($_POST['apply'])) {
|
||||
if_l2tp_configure_do();
|
||||
clear_subsystem_dirty('l2tpusers');
|
||||
header(url_safe('Location: vpn_l2tp_users.php'));
|
||||
header(url_safe('Location: /vpn_l2tp_users.php'));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -60,8 +60,8 @@ include("head.inc");
|
||||
$main_buttons = array(
|
||||
array('label'=>gettext("add user"), 'href'=>'vpn_l2tp_users_edit.php'),
|
||||
);
|
||||
?>
|
||||
|
||||
?>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
$( document ).ready(function() {
|
||||
|
||||
@@ -129,7 +129,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
l2tp_users_sort();
|
||||
write_config();
|
||||
if_l2tp_configure_do();
|
||||
header(url_safe('Location: vpn_l2tp_users.php'));
|
||||
header(url_safe('Location: /vpn_l2tp_users.php'));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -137,8 +137,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
$service_hook = 'l2tpd';
|
||||
legacy_html_escape_form_data($pconfig);
|
||||
include("head.inc");
|
||||
?>
|
||||
|
||||
?>
|
||||
<body>
|
||||
<?php include("fbegin.inc"); ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user