diff options
author | Bojan Suzic <bojan.suzic@iaik.tugraz.at> | 2014-04-01 16:54:06 +0200 |
---|---|---|
committer | Bojan Suzic <bojan.suzic@iaik.tugraz.at> | 2014-04-01 16:54:06 +0200 |
commit | 5f0b20d72cb502dedfdff5364d150a110c6fc395 (patch) | |
tree | 6c0eeac8af529d54f7e8e89a9268d17a8a18920b /common/src/main/java/at/gv/egovernment | |
parent | 4e26d339e14275d13f993fd75dbe2819870ae699 (diff) | |
parent | 779030ed2d7091183b3faf13fec57fa270d46c3a (diff) | |
download | moa-id-spss-5f0b20d72cb502dedfdff5364d150a110c6fc395.tar.gz moa-id-spss-5f0b20d72cb502dedfdff5364d150a110c6fc395.tar.bz2 moa-id-spss-5f0b20d72cb502dedfdff5364d150a110c6fc395.zip |
merge
Diffstat (limited to 'common/src/main/java/at/gv/egovernment')
-rw-r--r-- | common/src/main/java/at/gv/egovernment/moa/util/DOMUtils.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/src/main/java/at/gv/egovernment/moa/util/DOMUtils.java b/common/src/main/java/at/gv/egovernment/moa/util/DOMUtils.java index 102d3a31f..2b816ed4c 100644 --- a/common/src/main/java/at/gv/egovernment/moa/util/DOMUtils.java +++ b/common/src/main/java/at/gv/egovernment/moa/util/DOMUtils.java @@ -115,6 +115,8 @@ public class DOMUtils { private static final String EXTERNAL_PARAMETER_ENTITIES_FEATURE = "http://xml.org/sax/features/external-parameter-entities"; + private static final String DISALLOW_DOCTYPE_FEATURE = + "http://apache.org/xml/features/disallow-doctype-decl"; @@ -514,6 +516,9 @@ public class DOMUtils { parser.setFeature(NAMESPACES_FEATURE, true); parser.setFeature(VALIDATION_FEATURE, true); parser.setFeature(SCHEMA_VALIDATION_FEATURE, true); + parser.setFeature(EXTERNAL_GENERAL_ENTITIES_FEATURE, false); + parser.setFeature(DISALLOW_DOCTYPE_FEATURE, true); + if (externalSchemaLocations != null) { parser.setProperty( |