]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Some SVG files are "text/html" according to 'file'
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 5 Mar 2015 10:54:30 +0000 (11:54 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 5 Mar 2015 10:54:30 +0000 (11:54 +0100)
lib/mediafile.php

index bcc8662f56f6e632895806794b6fcdacc7f387cf..546239ed7d3bf6de2bbf4b7421139a1d9c694690 100644 (file)
@@ -332,6 +332,7 @@ class MediaFile
         $unclearTypes = array('application/octet-stream',
                               'application/vnd.ms-office',
                               'application/zip',
+                              'text/html',  // Ironically, Wikimedia Commons' SVG_logo.svg is identified as text/html
                               // TODO: for XML we could do better content-based sniffing too
                               'text/xml');