From 1e58639cc3111b35e0f351d006f3ba532290ab1f Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 2 Sep 2016 10:11:38 +0200 Subject: [PATCH] net/pppoe: favour absolute redirects --- net/pppoe/src/www/vpn_pppoe.php | 2 +- net/pppoe/src/www/vpn_pppoe_edit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/pppoe/src/www/vpn_pppoe.php b/net/pppoe/src/www/vpn_pppoe.php index 19dd1ebbe..d570449dc 100644 --- a/net/pppoe/src/www/vpn_pppoe.php +++ b/net/pppoe/src/www/vpn_pppoe.php @@ -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']])) { diff --git a/net/pppoe/src/www/vpn_pppoe_edit.php b/net/pppoe/src/www/vpn_pppoe_edit.php index 8ec3b611c..b41e5fc58 100644 --- a/net/pppoe/src/www/vpn_pppoe_edit.php +++ b/net/pppoe/src/www/vpn_pppoe_edit.php @@ -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; } }