From 3ae358581dfb6270989ac4e0434265ce16ea9dd3 Mon Sep 17 00:00:00 2001 From: cigamit Date: Fri, 7 Nov 2003 22:40:11 +0000 Subject: [PATCH] Fixes a few issues 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 --- src/mailto.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mailto.php b/src/mailto.php index a89c45a5..b921e852 100644 --- a/src/mailto.php +++ b/src/mailto.php @@ -23,6 +23,7 @@ define('SM_PATH','../'); /* 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)) { @@ -70,5 +71,6 @@ $url = urlencode($url); /* $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 -- 2.25.1