summarylogtreecommitdiffstats
path: root/libxml-pear.patch
blob: b8a9cc3264649ba8275dc5e56480256a7c07fab0 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- php-8.3.9/ext/xml/compat.c
+++ php-8.3.9/ext/xml/compat.c
@@ -375,7 +375,7 @@
 		if (ret == NULL)
 			ret = xmlGetDocEntity(parser->parser->myDoc, name);
 
-		if (ret == NULL || (parser->parser->instate != XML_PARSER_ENTITY_VALUE && parser->parser->instate != XML_PARSER_ATTRIBUTE_VALUE)) {
+		if (ret == NULL || parser->parser->instate == XML_PARSER_CONTENT) {
 			if (ret == NULL || ret->etype == XML_INTERNAL_GENERAL_ENTITY || ret->etype == XML_INTERNAL_PARAMETER_ENTITY || ret->etype == XML_INTERNAL_PREDEFINED_ENTITY) {
 				/* Predefined entities will expand unless no cdata handler is present */
 				if (parser->h_default && ! (ret && ret->etype == XML_INTERNAL_PREDEFINED_ENTITY && parser->h_cdata)) {