mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 07:10:05 +00:00 
			
		
		
		
	Update dependency libxml2 to v2.11.5
This commit is contained in:
		
							parent
							
								
									0e633e1808
								
							
						
					
					
						commit
						a98d978cc6
					
				
					 2 changed files with 15 additions and 6 deletions
				
			
		|  | @ -100,11 +100,20 @@ std::vector<DirListRecord> DirList(const std::string& baseUrl) | |||
|    } | ||||
|    else | ||||
|    { | ||||
|       htmlDocPtr doc = htmlSAXParseDoc( | ||||
|          reinterpret_cast<const xmlChar*>(response.text.c_str()), | ||||
|          nullptr, | ||||
|          &saxHandler_, | ||||
|          &saxData); | ||||
|       htmlParserCtxtPtr ctxt = htmlNewSAXParserCtxt(&saxHandler_, &saxData); | ||||
|       htmlDocPtr        doc  = nullptr; | ||||
| 
 | ||||
|       if (ctxt != nullptr) | ||||
|       { | ||||
|          doc = htmlCtxtReadDoc( | ||||
|             ctxt, | ||||
|             reinterpret_cast<const xmlChar*>(response.text.c_str()), | ||||
|             baseUrl.c_str(), | ||||
|             nullptr, | ||||
|             HTML_PARSE_NONET); | ||||
|          htmlFreeParserCtxt(ctxt); | ||||
|       } | ||||
| 
 | ||||
|       if (doc != nullptr) | ||||
|       { | ||||
|          xmlFreeDoc(doc); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat