From: pdontthink Date: Tue, 28 Aug 2007 19:28:30 +0000 (+0000) Subject: Need to decode urlencoding X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=177cb345059a40446565367aa3df4671cad2fc05;p=squirrelmail.git Need to decode urlencoding git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12612 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/compose.php b/src/compose.php index 4f4c1eaf..bdbc3c40 100644 --- a/src/compose.php +++ b/src/compose.php @@ -349,7 +349,7 @@ if (sqsession_is_registered('session_expired_post')) { } if (!empty($attachments)) - $attachments = unserialize($attachments); + $attachments = unserialize(urldecode($attachments)); sqsession_register($composesession,'composesession'); @@ -410,7 +410,7 @@ if (!isset($compose_messages[$session]) || ($compose_messages[$session] == NULL) // FIXME: note that technically this is very bad form - // should never directly manipulate an object like this if (!empty($attachments)) { - $attachments = unserialize($attachments); + $attachments = unserialize(urldecode($attachments)); if (!empty($attachments) && is_array($attachments)) $composeMessage->entities = $attachments; }