www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 5ceb3f4cf7f4beb506ceffe3c1167b9c4815fb13
parent 2019139a3c946b17855b464abca6549e38e7db8f
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri,  7 Jan 2011 04:10:52 +0000

Closes #1754, [PATCH] MIME type sniffing of PDFs is too strict for some real-world files

Look for "%PDF-" anywhere in the first 128 bytes


Diffstat:
Mchrome/content/zotero/xpcom/mime.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/mime.js b/chrome/content/zotero/xpcom/mime.js @@ -37,7 +37,7 @@ Zotero.MIME = new function(){ // Magic numbers var _snifferEntries = [ - ["%PDF-", "application/pdf", 0], + ["%PDF-", "application/pdf"], ["%!PS-Adobe-", 'application/postscript', 0], ["%! PS-Adobe-", 'application/postscript', 0], ["\uFFFD\uFFFD\x11\u0871\x1A\uFFFD\x00\x00", "application/msword", 0],