Some SVG files are "text/html" according to 'file'
This commit is contained in:
parent
d7fd507d99
commit
ff6969302b
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user