From 6783ba91c3acbac7d4570254924f956ed14efc0b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 23 Oct 2007 05:54:03 +0000 Subject: [PATCH] Improve detection of JPEG, GIF and PNG without extensions --- chrome/content/zotero/xpcom/mime.js | 37 +++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/chrome/content/zotero/xpcom/mime.js b/chrome/content/zotero/xpcom/mime.js index 6a77d9853..1dfa2d9e9 100644 --- a/chrome/content/zotero/xpcom/mime.js +++ b/chrome/content/zotero/xpcom/mime.js @@ -34,15 +34,19 @@ Zotero.MIME = new function(){ // Magic numbers var _snifferEntries = [ - ["%PDF-", "application/pdf"], - ["%!PS-Adobe-", 'application/postscript'], - ["%! PS-Adobe-", 'application/postscript'], - ["From", 'text/plain'], - [">From", 'text/plain'], - ["#!", 'text/plain'], - ["From", 'text/plain', 0], + ["#!", 'text/plain', 0], + ["