Page MenuHomePhabricator

GuessMIMEType doesn't recognize RTFs correctly
Closed, ResolvedPublic

Description

The function mitk::PACSPlugin::GuessMIMEType doesn't recognize files of type "text/richtext" correctly because it compares the file's magic bytes to a constant that is not the right one for RTF files. A patch using the correct magic bytes is attached to this bug report.

Event Timeline

[337693]: Merge branch 'bug-6948-GuessMIMETypeForRTFs'

Merged commits:

2011-05-18 15:20:12 Diana Wald [7f0801]
Escaped the backslash character before \r to get expected string "rft"

\r is an escape sequence for carriage return.
Hence, we escaped the backslash to get the rtf string.