Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #90 from guiguidu31300/master

UTF-8 Translation
  • Loading branch information...
commit b5b790ea759e633c68fed7146fedb3caa48930f2 2 parents a258847 + 989e77b
Robert Hafner tedivm authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/Fetch/Attachment.php
  2. +1 −1  src/Fetch/Message.php
4 src/Fetch/Attachment.php
View
@@ -93,9 +93,9 @@ public function __construct(Message $message, $structure, $partIdentifier = null
$parameters = Message::getParametersFromStructure($structure);
if (isset($parameters['filename'])) {
- $this->filename = $parameters['filename'];
+ $this->filename = imap_utf8($parameters['filename']);
} elseif (isset($parameters['name'])) {
- $this->filename = $parameters['name'];
+ $this->filename = imap_utf8($parameters['name']);
}
$this->size = $structure->bytes;
2  src/Fetch/Message.php
View
@@ -227,7 +227,7 @@ protected function loadMessage()
return false;
- $this->subject = isset($messageOverview->subject) ? $messageOverview->subject : null;
+ $this->subject = isset($messageOverview->subject) ? imap_utf8($messageOverview->subject) : null;
$this->date = strtotime($messageOverview->date);
$this->size = $messageOverview->size;
Please sign in to comment.
Something went wrong with that request. Please try again.