فهرست منبع

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

Jimmy Conner 22 سال پیش
والد
کامیت
55e4eebc52
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      src/mailto.php

+ 4 - 2
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);
+
+?>