mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-22 03:06:02 +03:00
UTF-8 Translation
This commit is contained in:
parent
501d5d0974
commit
989e77b758
@ -93,9 +93,9 @@ class Attachment
|
||||
$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;
|
||||
|
@ -220,7 +220,7 @@ class Message
|
||||
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user