Skip to content

Commit 6ae0b43

Browse files
committed
fix: Shield against null returned from getContentTypeParameter
1 parent 7e0b398 commit 6ae0b43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Mime/Viewer/Plain.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected function _impRender($inline)
9090
$type = 'text/html; charset=' . $charset;
9191

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

0 commit comments

Comments
 (0)