From c0556a51836332afcc7cf6feddc449977c6ff51c Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 25 May 2008 23:38:13 +0200 Subject: [PATCH] Avoid too many '/' Signed-off-by: Florent Bruneau --- class.xorg.auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.1.4