From 7aacc732d60de218195e046f5cb362e043216805 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 2 Sep 2016 10:13:01 +0200 Subject: [PATCH] net/l2tp: favour absolute redirects --- net/l2tp/src/www/vpn_l2tp.php | 4 ++-- net/l2tp/src/www/vpn_l2tp_users.php | 4 ++-- net/l2tp/src/www/vpn_l2tp_users_edit.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/net/l2tp/src/www/vpn_l2tp.php b/net/l2tp/src/www/vpn_l2tp.php index f788acca3..f10ae27d6 100644 --- a/net/l2tp/src/www/vpn_l2tp.php +++ b/net/l2tp/src/www/vpn_l2tp.php @@ -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"); -?> +?>
diff --git a/net/l2tp/src/www/vpn_l2tp_users.php b/net/l2tp/src/www/vpn_l2tp_users.php index 59522233f..bfbbaba3f 100644 --- a/net/l2tp/src/www/vpn_l2tp_users.php +++ b/net/l2tp/src/www/vpn_l2tp_users.php @@ -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'), ); -?> +?>