X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fredirect.php;h=f5eb22e9f8f54f9ad5d8a479a28753c3605bcbd0;hp=34e8a568bc2545a9cec7022e6040756d8e06c354;hb=5b8d68ca2263cc828546f629c7cd63a78783a3d0;hpb=5afe02cfab408727fec98ffafa8556e3278d2691 diff --git a/src/redirect.php b/src/redirect.php index 34e8a568..f5eb22e9 100644 --- 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). */ -$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();