diff --git a/src/index/mimetype.cpp b/src/index/mimetype.cpp index ef29a87e..0fc732b9 100644 --- a/src/index/mimetype.cpp +++ b/src/index/mimetype.cpp @@ -86,7 +86,8 @@ static string mimetypefromdata(const string &fn, bool usfc) return string(); list::iterator it = res.begin(); mime = *++it; - // Remove possible punctuation at the end + // Remove possible punctuation at the end. Note that this mangles + // text/x-c++ if there is no semi-colon... handled in mimeconf :( if (mime.length() > 0 && !isalpha(mime[mime.length() - 1])) mime.erase(mime.length() -1); // File -i will sometimes return strange stuff (ie: "very small file")