Menu

#9 Missing .= in GetContentTypeBody()

1.0
closed
None
2026-08-11
2026-08-10
No

A simple one: In function getContentTypeBody() on line 1236 the equal sign is missing.

Current code
return $data . "\t" . "boundary=\"" . $this->boundary[$bkey] . "\"";

Fix
return $data .= "\t" . "boundary=\"" . $this->boundary[$bkey] . "\"";

Discussion

  • Andy Prevost (CodeworxTech)

    not confirmed, not an issue.

     
  • Andy Prevost (CodeworxTech)

    • status: open --> closed
     
  • Thomas Gränicher

    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

Log in to post a comment.