auth : manage correctely the urls
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3429 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
6
auth.php
6
auth.php
@@ -94,7 +94,8 @@ class auth
|
|||||||
if ($url === "")
|
if ($url === "")
|
||||||
$res .= "#";
|
$res .= "#";
|
||||||
else
|
else
|
||||||
$res .= $baseURL."authentication/$url";
|
$res .= $baseURL."authentication/".
|
||||||
|
str_replace ("%2F", "/", urlencode ($url));
|
||||||
$res .= "'>\n";
|
$res .= "'>\n";
|
||||||
if ($alreadyAuth === false)
|
if ($alreadyAuth === false)
|
||||||
{
|
{
|
||||||
@@ -123,7 +124,8 @@ class auth
|
|||||||
$res .= " <p><a href='". $baseURL."authentication/logout'>".
|
$res .= " <p><a href='". $baseURL."authentication/logout'>".
|
||||||
dgettext ("domframework", "Logout")."</a>\n";
|
dgettext ("domframework", "Logout")."</a>\n";
|
||||||
if ($url !== "")
|
if ($url !== "")
|
||||||
$res .= "<a href='$baseURL$url'>".
|
$res .= "<a href='$baseURL".
|
||||||
|
str_replace ("%2F", "/", urlencode ($url))."'>".
|
||||||
dgettext ("domframework", "Go back to the calling page").
|
dgettext ("domframework", "Go back to the calling page").
|
||||||
"</a>\n";
|
"</a>\n";
|
||||||
$res .="</p>\n";
|
$res .="</p>\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user