Fixes a few issues
authorcigamit <cigamit@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 7 Nov 2003 22:40:11 +0000 (22:40 +0000)
committercigamit <cigamit@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 7 Nov 2003 22:40:11 +0000 (22:40 +0000)
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

index a89c45a51e7c4506b132c6655b537517ede6dfc1..b921e852752d5ab2ec188fc7a2ad8e1bb41838e5 100644 (file)
@@ -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