We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fff786 commit f6dfe8eCopy full SHA for f6dfe8e
1 file changed
src/DOMDocumentFactory.php
@@ -38,7 +38,8 @@ public static function fromString(string $xml): DOMDocument
38
libxml_clear_errors();
39
40
$domDocument = self::create();
41
- $options = LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_NONET | LIBXML_PARSEHUGE | LIBXML_NSCLEAN;
+ /** @TODO: LIBXML_NO_XXE is available as of PHP 8.4 */
42
+ $options = LIBXML_NONET | LIBXML_PARSEHUGE /* | LIBXML_NO_XXE */;
43
if (defined('LIBXML_COMPACT')) {
44
$options |= LIBXML_COMPACT;
45
}
0 commit comments