Author: mike
Description:
patch to fix mime.info parsing regular expression
A regular expression that's slightly off in MimeMagic's constructor causes it to keep whitespace between the last mime-type and the [MEDIATYPE] when parsing each line of the mime.info file. Each line is later explode()d on whitespace, causing MimeInfo to think each line contains at least two mime-types, which signifies an alias should be written from mime type 2+, usually the empty string, to the first mime type in that line.
This turns out not to hurt anything functionally, but does waste some cycles needlessly overpopulating the $mMimeTypeAliases array.
A patch consisting of a fixed regular expression is attached.
Version: unspecified
Severity: minor
Attached: