net/l2tp: favour absolute redirects

This commit is contained in:
Franco Fichtner
2016-09-02 10:13:01 +02:00
parent 1e58639cc3
commit 7aacc732d6
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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">
+2 -2
View File
@@ -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() {
+2 -2
View File
@@ -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"); ?>