Skip to content

Commit

Permalink
MIME: Do case-insesitive parsing of format=Flowed
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov authored and mrubinsk committed Oct 22, 2022
1 parent 1053586 commit 6d302ae
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 @@ -87,7 +87,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 6d302ae

Please sign in to comment.