summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-08 12:02:25 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-08 12:02:25 -0800
commit1b289b18f8b6fba90e4c051927a4bea5405514bd (patch)
tree8132ec90c43bce397639da155d4cb248bd5261da
parentc6c4b840e32a486346c7683eab51413403801269 (diff)
downloadlibxslt-1b289b18f8b6fba90e4c051927a4bea5405514bd.tar.gz
libxslt-1b289b18f8b6fba90e4c051927a4bea5405514bd.tar.bz2
libxslt-1b289b18f8b6fba90e4c051927a4bea5405514bd.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 e978a63c..aac20dc9 100644
--- a/xsltproc/xsltproc.c
+++ b/xsltproc/xsltproc.c
@@ -551,7 +551,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++) {