Skip to content

Commit

Permalink
Fixes errant linebreak on long subject lines in QEmailServer
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeho committed May 19, 2011
1 parent 33298c7 commit 60dcb1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/qcodo/_core/framework/QEmailServer.class.php
Expand Up @@ -578,6 +578,7 @@ public function CalculateMessageHeaderAndBody($strEncodingType = null, QDateTime
// Additional "Optional" Headers
if ($this->Subject) {
$strSubject = self::QuotedPrintableEncode($this->Subject);
$strSubject = str_replace("=\r\n", "", $strSubject);
$strSubject = str_replace('?', '=3F', $strSubject);
$this->SetHeader('Subject', sprintf("=?%s?Q?%s?=", $strEncodingType, $strSubject));
}
Expand Down

0 comments on commit 60dcb1e

Please sign in to comment.