From ff6969302bc90ded69fea58bf86ed4795f55135a Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 5 Mar 2015 11:54:30 +0100 Subject: [PATCH] Some SVG files are "text/html" according to 'file' --- lib/mediafile.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mediafile.php b/lib/mediafile.php index bcc8662f56..546239ed7d 100644 --- a/lib/mediafile.php +++ b/lib/mediafile.php @@ -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'); -- 2.39.5