squid: fix compilation with libxml (refs #19099)
[feed/packages.git] / net / squid / patches / 020-libxml-drop-xmlSetFeature.patch
diff --git a/net/squid/patches/020-libxml-drop-xmlSetFeature.patch b/net/squid/patches/020-libxml-drop-xmlSetFeature.patch
new file mode 100644 (file)
index 0000000..02be06a
--- /dev/null
@@ -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);