From: Mikael Nordfeldth Date: Thu, 5 Mar 2015 10:54:30 +0000 (+0100) Subject: Some SVG files are "text/html" according to 'file' X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ff6969302bc90ded69fea58bf86ed4795f55135a;p=quix0rs-gnu-social.git Some SVG files are "text/html" according to 'file' --- 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');