Detect some HTML files as separate invalid filetype
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808507 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
92ae9ce5e0
commit
51944a4e82
@ -74,6 +74,8 @@ public enum FileMagic {
|
|||||||
RTF("{\\rtf"),
|
RTF("{\\rtf"),
|
||||||
/** PDF document */
|
/** PDF document */
|
||||||
PDF("%PDF"),
|
PDF("%PDF"),
|
||||||
|
/** Some different HTML documents */
|
||||||
|
HTML("<!DOCTYP".getBytes(), "<html".getBytes()),
|
||||||
// keep UNKNOWN always as last enum!
|
// keep UNKNOWN always as last enum!
|
||||||
/** UNKNOWN magic */
|
/** UNKNOWN magic */
|
||||||
UNKNOWN(new byte[0]);
|
UNKNOWN(new byte[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user