Skip to content

Commit

Permalink
Merge pull request #9 from dilyanpalauzov/format_Flowed
Browse files Browse the repository at this point in the history
MIME: Do case-insensitive parsing of format=Flowed
  • Loading branch information
mrubinsk committed Oct 22, 2022
2 parents 5f9aef5 + bbe083d commit 0a7eea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mime/Viewer/Plain.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected function _impRender($inline)
$type = 'text/html; charset=' . $charset;

// Check for 'flowed' text data.
if ($this->_mimepart->getContentTypeParameter('format') == 'flowed') {
if (strcasecmp($this->_mimepart->getContentTypeParameter('format'), 'flowed') == 0) {
$text = $this->_formatFlowed($text, $this->_mimepart->getContentTypeParameter('delsp'));
} else {
/* A "From" located at the beginning of a line in the body text
Expand Down

0 comments on commit 0a7eea6

Please sign in to comment.