Add LIBXML_NO_XXE constant (#14844)

This constant is available as of libxml2 2.13, and is used together with
LIBXML_NOENT to allow entity subsitution but disallow external entities.
This commit is contained in:
Niels Dossche 2024-07-06 08:43:46 -07:00 committed by GitHub
parent 1f64e7c253
commit f0441e05b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 86 additions and 5 deletions

View file

@ -28,6 +28,13 @@ const LIBXML_RECOVER = UNKNOWN;
* @cvalue XML_PARSE_NOENT
*/
const LIBXML_NOENT = UNKNOWN;
#if LIBXML_VERSION >= 21300
/**
* @var int
* @cvalue XML_PARSE_NO_XXE
*/
const LIBXML_NO_XXE = UNKNOWN;
#endif
/**
* @var int
* @cvalue XML_PARSE_DTDLOAD