improve sax reading
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1838048 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2942b66e7a
commit
fa0d9edebd
@ -113,7 +113,7 @@ public final class SAXHelper {
|
||||
try {
|
||||
Object mgr = Class.forName(securityManagerClassName).newInstance();
|
||||
Method setLimit = mgr.getClass().getMethod("setEntityExpansionLimit", Integer.TYPE);
|
||||
setLimit.invoke(mgr, 4096);
|
||||
setLimit.invoke(mgr, 0);
|
||||
xmlReader.setProperty(POIXMLConstants.PROPERTY_SECURITY_MANAGER, mgr);
|
||||
// Stop once one can be setup without error
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user