OK, so it wants a trailing slash...
authorgraf25 <graf25@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 6 Apr 2002 20:25:13 +0000 (20:25 +0000)
committergraf25 <graf25@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 6 Apr 2002 20:25:13 +0000 (20:25 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2690 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/auth.php
src/login.php
src/redirect.php
src/signout.php
src/webmail.php

index 0f22c8a..83affbe 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 if (!isset($base_uri)) {
-    $base_uri = dirname(dirname($PHP_SELF));
+    $base_uri = dirname(dirname($PHP_SELF)) . "/";
 }
 
 function is_logged_in() {
index 57a47e9..93aa3e3 100644 (file)
@@ -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();
 
 /*
index 9b82bee..34e8a56 100644 (file)
@@ -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();
index 01aa236..d8b15ec 100644 (file)
@@ -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');
index c2768dc..72f0c07 100644 (file)
@@ -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();