Browse Source

Merge pull request #19438 from mhei/22.03-squid-libxml2-backport

[22.03] squid: fix compilation with libxml (fixes #19099)
lilik-openwrt-22.03
Michael Heimpold 2 years ago
committed by GitHub
parent
commit
d6c7e63c93
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      net/squid/patches/020-libxml-drop-xmlSetFeature.patch

+ 10
- 0
net/squid/patches/020-libxml-drop-xmlSetFeature.patch View File

@ -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);

Loading…
Cancel
Save