More SVG detection fixes based on tests on files downloaded from commons...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 5 Feb 2008 22:50:21 +0000 (22:50 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 5 Feb 2008 22:50:21 +0000 (22:50 +0000)
commitaa3fc2541e22f6e22cb3f4bb62598095ad27341b
tree3b1468b60bc51f65340558ec85dcac3153bd49a0
parent839871e486723f775771d4621c32e75ec329a3f7
More SVG detection fixes based on tests on files downloaded from commons...
* Make the autodetection work for UTF-16LE and UTF-16BE XML, which never worked before due to using the wrong string compare length
* Allow doctype strings to break over newlines
* Detect XML if there's a doctype even if there's no XML header (the xml header isn't required for UTF-8 files)
includes/MimeMagic.php