Sfoglia il codice sorgente

OK, so it wants a trailing slash...

graf25 23 anni fa
parent
commit
6d6fa84207
5 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 1 1
      functions/auth.php
  2. 1 1
      src/login.php
  3. 1 1
      src/redirect.php
  4. 1 1
      src/signout.php
  5. 1 1
      src/webmail.php

+ 1 - 1
functions/auth.php

@@ -16,7 +16,7 @@
  */
 
 if (!isset($base_uri)) {
-    $base_uri = dirname(dirname($PHP_SELF));
+    $base_uri = dirname(dirname($PHP_SELF)) . "/";
 }
 
 function is_logged_in() {

+ 1 - 1
src/login.php

@@ -69,7 +69,7 @@ set_up_language($squirrelmail_language, TRUE);
 /**
  * Find out the base URI to set cookies.
  */
-$base_uri = dirname(dirname($PHP_SELF));
+$base_uri = dirname(dirname($PHP_SELF)) . "/";
 @session_destroy();
 
 /*

+ 1 - 1
src/redirect.php

@@ -36,7 +36,7 @@ if (get_magic_quotes_gpc()) {
 
 /* Before starting the session, the base URI must be known. Assuming */
 /* that this file is in the src/ subdirectory (or something).        */
-$base_uri = dirname(dirname($PHP_SELF));
+$base_uri = dirname(dirname($PHP_SELF)) . "/";
 
 header('Pragma: no-cache');
 $location = get_location();

+ 1 - 1
src/signout.php

@@ -35,7 +35,7 @@ if (!isset($frame_top)) {
 /* If a user hits reload on the last page, $base_uri isn't set
  * because it was deleted with the session. */
 if (!isset($base_uri)) {
-    $base_uri = dirname(dirname($PHP_SELF));
+    $base_uri = dirname(dirname($PHP_SELF)) . "/";
 }
 
 do_hook('logout');

+ 1 - 1
src/webmail.php

@@ -21,7 +21,7 @@ require_once('../functions/plugin.php');
 require_once('../functions/i18n.php');
 require_once('../functions/auth.php');
 
-$base_uri = dirname(dirname($PHP_SELF));
+$base_uri = dirname(dirname($PHP_SELF)) . "/";
 
 session_start();
 is_logged_in();