summaryrefslogtreecommitdiff
path: root/bkucommon/src/main/java/at/gv/egiz/bku/slcommands
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-04-02 16:38:40 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-04-02 16:38:40 +0000
commit355d8e3324688e9b68660512bf79710ce4df057b (patch)
tree86557d316194133689ec14c8fb7af04363011dc6 /bkucommon/src/main/java/at/gv/egiz/bku/slcommands
parentd67075dcf3790ed6858987c4100fcda2e5a097a5 (diff)
downloadmocca-355d8e3324688e9b68660512bf79710ce4df057b.tar.gz
mocca-355d8e3324688e9b68660512bf79710ce4df057b.tar.bz2
mocca-355d8e3324688e9b68660512bf79710ce4df057b.zip
Set secure processing feature on XALAN Transformers
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1034 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src/main/java/at/gv/egiz/bku/slcommands')
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/SLResultImpl.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/SLResultImpl.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/SLResultImpl.java
index d4efddfc..4df529da 100644
--- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/SLResultImpl.java
+++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/SLResultImpl.java
@@ -204,6 +204,7 @@ public abstract class SLResultImpl implements SLResult {
if (templates == null) {
try {
TransformerFactory transformerFactory = TransformerFactory.newInstance();
+ transformerFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
Transformer transformer = transformerFactory.newTransformer();
if (fragment) {
transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");