From: jangliss Date: Sun, 20 Feb 2005 05:18:23 +0000 (+0000) Subject: If mailto: string isn't double URL encoded, the values don't correctly get X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3e56c08d719800e5684db5b0eeaed53db633617b;p=squirrelmail.git If mailto: string isn't double URL encoded, the values don't correctly get fed to compose.php. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8884 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/ChangeLog b/ChangeLog index 8c80c43b..59fad243 100644 --- a/ChangeLog +++ b/ChangeLog @@ -231,6 +231,8 @@ Version 1.5.1 -- CVS option includes. - Fixed bug #1124764, view unsafe images inside printer friendly view. - Fixed bug #1032366, remove NUL characters in text attachments on sent. + - URL Encode required for string being passed in mailto: links to pass on + additional values (cc, body, subject etc). Version 1.5.0 -------------------- diff --git a/src/redirect.php b/src/redirect.php index 83bec690..9a9a0086 100644 --- a/src/redirect.php +++ b/src/redirect.php @@ -141,7 +141,7 @@ if ( sqgetGlobalVar('session_expired_location', $session_expired_location, SQ_SE } if($mailto != '') { $redirect_url = $location . '/webmail.php?right_frame=compose.php&mailto='; - $redirect_url .= $mailto; + $redirect_url .= urlencode($mailto); } /* Write session data and send them off to the appropriate page. */ @@ -176,4 +176,4 @@ function attachment_common_parse($str, $debug) { sqsession_register($attachment_common_types, 'attachment_common_types'); } -?> \ No newline at end of file +?>