}
if (!empty($attachments))
- $attachments = unserialize($attachments);
+ $attachments = unserialize(urldecode($attachments));
sqsession_register($composesession,'composesession');
// 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;
}