summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-08 12:02:25 -0800
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>2014-11-12 14:09:24 +0100
commit13cdb86714eded0d6387e735691ff1c9baea67a9 (patch)
tree12ffcee2fbc1e25485fec4d2109319b57177afbb
parent6efe4e6a473198ea858d810287d0e801341b3406 (diff)
downloadlibxslt-13cdb86714eded0d6387e735691ff1c9baea67a9.tar.gz
libxslt-13cdb86714eded0d6387e735691ff1c9baea67a9.tar.bz2
libxslt-13cdb86714eded0d6387e735691ff1c9baea67a9.zip
no network
-rw-r--r--xsltproc/xsltproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c
index 35f37e8b..7cea54ce 100644
--- a/xsltproc/xsltproc.c
+++ b/xsltproc/xsltproc.c
@@ -562,7 +562,7 @@ main(int argc, char **argv)
sec = xsltNewSecurityPrefs();
xsltSetDefaultSecurityPrefs(sec);
- defaultEntityLoader = xmlGetExternalEntityLoader();
+ defaultEntityLoader = getenv("RPM_PACKAGE_NAME") ? xmlNoNetExternalEntityLoader : xmlGetExternalEntityLoader();
xmlSetExternalEntityLoader(xsltprocExternalEntityLoader);
for (i = 1; i < argc; i++) {