From 177cb345059a40446565367aa3df4671cad2fc05 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Tue, 28 Aug 2007 19:28:30 +0000 Subject: [PATCH] Need to decode urlencoding git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12612 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.25.1