From d3e7b4c7c4b2fb8ade94e7fe4ef79febdc34b956 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 15 Mar 2017 09:28:03 +0000 Subject: [PATCH] auth : manage correctely the urls git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3429 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- auth.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/auth.php b/auth.php index 5661d88..5e1bca5 100644 --- a/auth.php +++ b/auth.php @@ -94,7 +94,8 @@ class auth if ($url === "") $res .= "#"; else - $res .= $baseURL."authentication/$url"; + $res .= $baseURL."authentication/". + str_replace ("%2F", "/", urlencode ($url)); $res .= "'>\n"; if ($alreadyAuth === false) { @@ -123,7 +124,8 @@ class auth $res .= "

". dgettext ("domframework", "Logout")."\n"; if ($url !== "") - $res .= "". + $res .= "". dgettext ("domframework", "Go back to the calling page"). "\n"; $res .="

\n";