Avoid too many '/'
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 25 May 2008 21:38:13 +0000 (23:38 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 25 May 2008 21:38:13 +0000 (23:38 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
class.xorg.auth.php

index 8e15156..4d47927 100644 (file)
@@ -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;