From: Florent Bruneau Date: Sun, 25 May 2008 21:38:13 +0000 (+0200) Subject: Avoid too many '/' X-Git-Url: http://git.polytechnique.org/?p=dotclear.git;a=commitdiff_plain;h=c0556a51836332afcc7cf6feddc449977c6ff51c Avoid too many '/' Signed-off-by: Florent Bruneau --- diff --git a/class.xorg.auth.php b/class.xorg.auth.php index 8e15156..4d47927 100644 --- a/class.xorg.auth.php +++ b/class.xorg.auth.php @@ -28,7 +28,7 @@ class xorgAuth extends dcAuth { public function callXorg() { if (@$_SESSION['auth-xorg']) { - header("Location: http://murphy.m4x.org/" . $_GET['path']); + header("Location: http://murphy.m4x.org" . $_GET['path']); return; } $_SESSION["auth-x-challenge"] = md5(uniqid(rand(), 1)); @@ -58,7 +58,7 @@ class xorgAuth extends dcAuth { if (md5('1' . $_SESSION['auth-x-challenge'] . XORG_AUTH_KEY . $params . '1') == $_GET['auth']) { unset($_GET['auth']); $_SESSION['auth-xorg'] = $_GET['forlife']; - header("Location: http://murphy.m4x.org/" . $_GET['path']); + header("Location: http://murphy.m4x.org" . $_GET['path']); return true; } $_SESSION['auth-xorg'] = null;