projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A fix for my fix of src/src. Now all basename-deriving code is located in
[squirrelmail.git]
/
src
/
redirect.php
diff --git
a/src/redirect.php
b/src/redirect.php
index 34e8a568bc2545a9cec7022e6040756d8e06c354..f5eb22e9f8f54f9ad5d8a479a28753c3605bcbd0 100644
(file)
--- a/
src/redirect.php
+++ b/
src/redirect.php
@@
-36,7
+36,10
@@
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). */
/* 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)) . "/";
+if (!function_exists('sqm_baseuri')){
+ require_once('../functions/display_messages.php');
+}
+$base_uri = sqm_baseuri();
header('Pragma: no-cache');
$location = get_location();
header('Pragma: no-cache');
$location = get_location();