Correction to my previous report: the function name GetContentTypeBody() was correct, but unfortunately I pasted the wrong code line (from GetContentTypeHdr()).
The actual problematic line in GetContentTypeBody() is: $data . "\t" . $charset . self::CRLF;
Since the result of this expression is neither assigned nor returned, the charset parameter is discarded.
It should be: $data .= "\t" . $charset . self::CRLF;
Sorry for the confusion caused by quoting the wrong line in my original report.
Last edit: Thomas Gränicher 2026-08-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
not confirmed, not an issue.
Correction to my previous report: the function name GetContentTypeBody() was correct, but unfortunately I pasted the wrong code line (from GetContentTypeHdr()).
The actual problematic line in GetContentTypeBody() is:
$data . "\t" . $charset . self::CRLF;Since the result of this expression is neither assigned nor returned, the charset parameter is discarded.
It should be:
$data .= "\t" . $charset . self::CRLF;Sorry for the confusion caused by quoting the wrong line in my original report.
Last edit: Thomas Gränicher 2026-08-11