Browse Source

Fix little bug where base_uri is '/' causing the 'Please Login' URL to
redirect to //src/login.php - which maps to http://src/login.php, and
I don't have a hostname 'src' on my network!

Bron Gondwana 23 years ago
parent
commit
555826258e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions/auth.php

+ 1 - 1
functions/auth.php

@@ -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>' .
-         "<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;
 }