File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
main/resources/org/apache/tika/mime
java/org/apache/tika/mime
resources/org/apache/tika/mime Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 76807680 <root-XML localName =" SCRIPT" />
76817681 <root-XML localName =" frameset" />
76827682 <root-XML localName =" FRAMESET" />
7683+ <root-XML localName =" iframe" />
7684+ <root-XML localName =" IFRAME" />
76837685 <magic priority =" 60" >
76847686 <match value =" (?i)< (html|head|body|title|div)[ >]" type =" regex" offset =" 0" />
76857687 <match value =" (?i)< h[123][ >]" type =" regex" offset =" 0" />
Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ public void testDetection() throws Exception {
7474 testFile ("text/html" , "testlargerbuffer.html" );
7575 // test fragment of HTML with <div> (TIKA-1102)
7676 testFile ("text/html" , "htmlfragment" );
77+ // test fragment of HTML with <iframe> and potentially misleading file suffix
78+ testFile ("text/html" , "test-html-snippet-iframe.jsp" );
7779 // test binary CGM detection (TIKA-1170)
7880 testFile ("image/cgm" , "plotutils-bin-cgm-v3.cgm" );
7981 // test HTML detection of malformed file, previously identified as image/cgm (TIKA-1170)
Original file line number Diff line number Diff line change 1+ <!-- this is a comment: https://www.example.org/path/file.pdf -->
2+ <iframe src =' /path/file.pdf' width =' 100%' height =' 100%' target =' _blank' >
You can’t perform that action at this time.
0 commit comments