فهرست منبع

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 سال پیش
والد
کامیت
555826258e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      functions/auth.php

+ 1 - 1
functions/auth.php

@@ -31,7 +31,7 @@ function is_logged_in () {
     echo "<body bgcolor=\"ffffff\">\n" .
     echo "<body bgcolor=\"ffffff\">\n" .
          '<br><br><center><b>' .
          '<br><br><center><b>' .
          _("You must be logged in to access this page.").'</b><br><br>' .
          _("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";
          "</center></body></html>\n";
     exit;
     exit;
 }
 }