string.php is required for get_location()
get_location() doesn't append a / so we should before adding the redirect variable
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6107
7612ce4b-ef26-0410-bec9-
ea0150e637f0
/* SquirrelMail required files. */
require_once(SM_PATH . 'config/config.php');
require_once(SM_PATH . 'functions/global.php');
+require_once(SM_PATH . 'functions/strings.php');
header('Pragma: no-cache');
if(!sqgetGlobalVar('emailaddress', $emailaddress)) {
/* $redirect .= $url; */
$redirect = 'login.php?mailto=' . $url;
session_write_close();
-header('Location: ' .get_location(). $redirect);
-?>
+header('Location: ' . get_location() . '/' . $redirect);
+
+?>
\ No newline at end of file