mirror of
				https://gitlab.gnome.org/GNOME/libxml2.git
				synced 2025-10-30 10:45:36 +03:00 
			
		
		
		
	parser: Fix loading of parameter entities in external DTDs
Regressed with commit 12f0bb94.
Fixes #816.
			
			
This commit is contained in:
		
							
								
								
									
										2
									
								
								parser.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								parser.c
									
									
									
									
									
								
							| @@ -11749,6 +11749,7 @@ xmlIOParseDTD(xmlSAXHandlerPtr sax, xmlParserInputBufferPtr input, | ||||
|         xmlFreeParserInputBuffer(input); | ||||
| 	return(NULL); | ||||
|     } | ||||
|     xmlCtxtSetOptions(ctxt, XML_PARSE_DTDLOAD); | ||||
|  | ||||
|     /* | ||||
|      * generate a parser input from the I/O handler | ||||
| @@ -11839,6 +11840,7 @@ xmlSAXParseDTD(xmlSAXHandlerPtr sax, const xmlChar *ExternalID, | ||||
|     if (ctxt == NULL) { | ||||
| 	return(NULL); | ||||
|     } | ||||
|     xmlCtxtSetOptions(ctxt, XML_PARSE_DTDLOAD); | ||||
|  | ||||
|     /* | ||||
|      * Canonicalise the system ID | ||||
|   | ||||
		Reference in New Issue
	
	Block a user