Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix inline viewing of image attachments
The code extracting the MIME type from the content was incorrect, assuming that a semi-colon would always be present but it's not always the case. This resulted in MIME type being empty, which in turn made the browser download the file instead of displaying the image inline when the web server's content disposition header is set to "attachment". Jan Müller's original patch [1] was replaced by more efficient code. Fixes #12313 [1] #1125
- Loading branch information