Skip to content

Commit

Permalink
Ensure headers are always UTF-8.
Browse files Browse the repository at this point in the history
Possible fix for Bug #13456
  • Loading branch information
mrubinsk committed Sep 2, 2014
1 parent 0688cd5 commit 9e00a3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Rfc822.php
Expand Up @@ -150,7 +150,7 @@ public function addStandardHeaders()
$updated = true;
}
if ($updated) {
$this->_header_text = $headers->toString();
$this->_header_text = $headers->toString(array('charset' => 'UTF-8'));
}
}

Expand Down
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Core/ActiveSync/Mail.php
Expand Up @@ -279,7 +279,7 @@ protected function _sendRaw()
protected function _sendSmart()
{
$mime_message = $this->_raw->getMimeObject();
$mail = new Horde_Mime_Mail($this->_headers->toArray());
$mail = new Horde_Mime_Mail($this->_headers->toArray(array('charset' => 'UTF-8')));
try {
$this->_getImapMessage();
} catch (Horde_Exception_NotFound $e) {
Expand Down

0 comments on commit 9e00a3b

Please sign in to comment.