dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecc37d5
)
the correct magic for PDF is "%PDF"
author
River Tarnell
<river@users.mediawiki.org>
Sat, 9 Feb 2008 23:59:26 +0000
(23:59 +0000)
committer
River Tarnell
<river@users.mediawiki.org>
Sat, 9 Feb 2008 23:59:26 +0000
(23:59 +0000)
includes/MimeMagic.php
patch
|
blob
|
history
diff --git
a/includes/MimeMagic.php
b/includes/MimeMagic.php
index
75cfb6e
..
2ca5892
100644
(file)
--- a/
includes/MimeMagic.php
+++ b/
includes/MimeMagic.php
@@
-414,7
+414,7
@@
class MimeMagic {
// Note that WMF may have a bare header, no magic number.
"\x01\x00\x09\x00" => 'application/x-msmetafile', // Possibly prone to false positives?
"\xd7\xcd\xc6\x9a" => 'application/x-msmetafile',
- '
PDF%
' => 'application/pdf',
+ '
%PDF
' => 'application/pdf',
'gimp xcf' => 'image/x-xcf',
// Some forbidden fruit...