Some SVG files are "text/html" according to 'file'

This commit is contained in:
Mikael Nordfeldth 2015-03-05 11:54:30 +01:00
parent d7fd507d99
commit ff6969302b

View 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');