Skip to content

Commit

Permalink
TIKA-4157 -- bump max file count to 10k.
Browse files Browse the repository at this point in the history
(cherry picked from commit df31783)
  • Loading branch information
tballison committed Oct 16, 2023
1 parent e389afb commit 0912610
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public class OOXMLParser extends AbstractOfficeParser {
static {
//turn off POI's zip bomb detection because we have our own
ZipSecureFile.setMinInflateRatio(-1.0d);
//bump this to a higher value than POI's default of 1000
ZipSecureFile.setMaxFileCount(10000);
}

public Set<MediaType> getSupportedTypes(ParseContext context) {
Expand Down

0 comments on commit 0912610

Please sign in to comment.