aboutsummaryrefslogtreecommitdiff
path: root/net/squid/patches
diff options
context:
space:
mode:
authorMichael Heimpold <mhei@heimpold.de>2022-08-25 08:20:45 +0200
committerMichael Heimpold <mhei@heimpold.de>2022-08-25 08:26:44 +0200
commit3ec47dc85cc4b191be1b2fee3195680343f770e1 (patch)
tree6474da2c031ac665acac8de2a07bef74030057d7 /net/squid/patches
parentf3a3184d3283334fd60498aba6b6bbcc246e3d55 (diff)
squid: fix compilation with libxml (refs #19099)
Add a patch which removes a call in Libxml2Parser.cc to 'xmlSetFeature'. This function belongs to the 'depreciated' API part and is not available in OpenWrt builds. According to my understanding, this call can be removed safely since it disables the feature "substitute entities" which is disabled by default. Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Diffstat (limited to 'net/squid/patches')
-rw-r--r--net/squid/patches/020-libxml-drop-xmlSetFeature.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/squid/patches/020-libxml-drop-xmlSetFeature.patch b/net/squid/patches/020-libxml-drop-xmlSetFeature.patch
new file mode 100644
index 000000000..02be06ab0
--- /dev/null
+++ b/net/squid/patches/020-libxml-drop-xmlSetFeature.patch
@@ -0,0 +1,10 @@
+--- a/src/esi/Libxml2Parser.cc
++++ b/src/esi/Libxml2Parser.cc
+@@ -91,7 +91,6 @@ ESILibxml2Parser::ESILibxml2Parser(ESIPa
+
+ /* TODO: grab the document encoding from the headers */
+ parser = xmlCreatePushParserCtxt(&sax, static_cast<void *>(this), NULL, 0, NULL);
+- xmlSetFeature(parser, "substitute entities", 0);
+
+ if (entity_doc == NULL)
+ entity_doc = htmlNewDoc(NULL, NULL);