summaryrefslogtreecommitdiff
path: root/packaging/libxslt-1.1.24-no-net-autobuild.patch
blob: a66438430424cbec4d2f88fc7dffb4fbfe607d95 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- xsltproc/xsltproc.c
+++ xsltproc/xsltproc.c
@@ -544,7 +544,7 @@
 
     sec = xsltNewSecurityPrefs();
     xsltSetDefaultSecurityPrefs(sec);
-    defaultEntityLoader = xmlGetExternalEntityLoader();
+    defaultEntityLoader = getenv("RPM_PACKAGE_NAME") ? xmlNoNetExternalEntityLoader : xmlGetExternalEntityLoader();
     xmlSetExternalEntityLoader(xsltprocExternalEntityLoader);
 
     for (i = 1; i < argc; i++) {