Menu

#13 Charset is not added to Header "Content-Type"

1.0
open
nobody
None
2026-08-14
2026-08-14
No

Correction to my previous report in ticket #9: 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. As a result, the charset never gets added to header "Content-Type".
It should be:
$data .= "\t" . $charset . self::CRLF;
Sorry for the confusion caused by quoting the wrong line in my original report.

Discussion


Log in to post a comment.