Update dependency libxml2 to v2.11.5

This commit is contained in:
Dan Paulat 2023-11-17 20:51:50 -06:00
parent 0e633e1808
commit a98d978cc6
2 changed files with 15 additions and 6 deletions

View file

@ -11,7 +11,7 @@ class SupercellWxConan(ConanFile):
"glm/cci.20230113", "glm/cci.20230113",
"gtest/1.14.0", "gtest/1.14.0",
"libcurl/8.4.0", "libcurl/8.4.0",
"libxml2/2.10.4", "libxml2/2.11.5",
"openssl/3.1.4", "openssl/3.1.4",
"spdlog/1.12.0", "spdlog/1.12.0",
"sqlite3/3.44.0", "sqlite3/3.44.0",

View file

@ -100,11 +100,20 @@ std::vector<DirListRecord> DirList(const std::string& baseUrl)
} }
else else
{ {
htmlDocPtr doc = htmlSAXParseDoc( htmlParserCtxtPtr ctxt = htmlNewSAXParserCtxt(&saxHandler_, &saxData);
reinterpret_cast<const xmlChar*>(response.text.c_str()), htmlDocPtr doc = nullptr;
nullptr,
&saxHandler_, if (ctxt != nullptr)
&saxData); {
doc = htmlCtxtReadDoc(
ctxt,
reinterpret_cast<const xmlChar*>(response.text.c_str()),
baseUrl.c_str(),
nullptr,
HTML_PARSE_NONET);
htmlFreeParserCtxt(ctxt);
}
if (doc != nullptr) if (doc != nullptr)
{ {
xmlFreeDoc(doc); xmlFreeDoc(doc);