mirror of https://github.com/apache/poi.git
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
e55cbeb987
commit
524b925505
|
@ -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