Need to decode urlencoding
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Aug 2007 19:28:30 +0000 (19:28 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Aug 2007 19:28:30 +0000 (19:28 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12612 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index 4f4c1eaf16e0af318455b38915920c5610af9bcf..bdbc3c404e8a98c4d398fab8a2ec71bb4c9eb2f5 100644 (file)
@@ -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;
 }