소스 검색

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