Fix little bug where base_uri is '/' causing the 'Please Login' URL to
authorbrong <brong@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 22 Feb 2002 10:15:18 +0000 (10:15 +0000)
committerbrong <brong@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 22 Feb 2002 10:15:18 +0000 (10:15 +0000)
redirect to //src/login.php - which maps to http://src/login.php, and
I don't have a hostname 'src' on my network!

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2498 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/auth.php

index dde3147547b482272b47d88e883b83d34d2d93ba..bebc7f87a1739de545b3c994428b94118c809ccb 100644 (file)
@@ -31,7 +31,7 @@ function is_logged_in () {
     echo "<body bgcolor=\"ffffff\">\n" .
          '<br><br><center><b>' .
          _("You must be logged in to access this page.").'</b><br><br>' .
     echo "<body bgcolor=\"ffffff\">\n" .
          '<br><br><center><b>' .
          _("You must be logged in to access this page.").'</b><br><br>' .
-         "<a href=\"$base_uri/src/login.php\" target=\"$frame_top\">"._("Go to the login page")."</a>\n" .
+         "<a href=\"$base_uri" . "src/login.php\" target=\"$frame_top\">"._("Go to the login page")."</a>\n" .
          "</center></body></html>\n";
     exit;
 }
          "</center></body></html>\n";
     exit;
 }