File libxslt-1.1.24-no-net-autobuild.patch of Package libxslt-python
12
1
--- xsltproc/xsltproc.c
2
+++ xsltproc/xsltproc.c
3
4
5
sec = xsltNewSecurityPrefs();
6
xsltSetDefaultSecurityPrefs(sec);
7
- defaultEntityLoader = xmlGetExternalEntityLoader();
8
+ defaultEntityLoader = getenv("RPM_PACKAGE_NAME") ? xmlNoNetExternalEntityLoader : xmlGetExternalEntityLoader();
9
xmlSetExternalEntityLoader(xsltprocExternalEntityLoader);
10
11
for (i = 1; i < argc; i++) {
12