From 5afe02cfab408727fec98ffafa8556e3278d2691 Mon Sep 17 00:00:00 2001 From: graf25 Date: Sat, 6 Apr 2002 20:25:13 +0000 Subject: [PATCH] OK, so it wants a trailing slash... git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2690 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/auth.php | 2 +- src/login.php | 2 +- src/redirect.php | 2 +- src/signout.php | 2 +- src/webmail.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/functions/auth.php b/functions/auth.php index 0f22c8a0..83affbe6 100644 --- a/functions/auth.php +++ b/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() { diff --git a/src/login.php b/src/login.php index 57a47e93..93aa3e37 100644 --- a/src/login.php +++ b/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(); /* diff --git a/src/redirect.php b/src/redirect.php index 9b82bee7..34e8a568 100644 --- a/src/redirect.php +++ b/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(); diff --git a/src/signout.php b/src/signout.php index 01aa236b..d8b15ec4 100644 --- a/src/signout.php +++ b/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'); diff --git a/src/webmail.php b/src/webmail.php index c2768dc8..72f0c078 100644 --- a/src/webmail.php +++ b/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(); -- 2.25.1