mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-19 14:50:07 +03:00
entities: Check for illegal entity types in xmlAddEntity
This commit is contained in:
parent
c1fe9e72ef
commit
50816b8d1a
@ -253,7 +253,7 @@ xmlAddEntity(xmlDocPtr doc, int extSubset, const xmlChar *name, int type,
|
||||
}
|
||||
table = dtd->pentities;
|
||||
break;
|
||||
case XML_INTERNAL_PREDEFINED_ENTITY:
|
||||
default:
|
||||
return(XML_ERR_ARGUMENT);
|
||||
}
|
||||
ret = xmlCreateEntity(dtd->doc, name, type, ExternalID, SystemID, content);
|
||||
|
Loading…
x
Reference in New Issue
Block a user