Skip to content

Commit f6dfe8e

Browse files
committed
Remove problematic options
1 parent 0fff786 commit f6dfe8e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/DOMDocumentFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public static function fromString(string $xml): DOMDocument
3838
libxml_clear_errors();
3939

4040
$domDocument = self::create();
41-
$options = LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_NONET | LIBXML_PARSEHUGE | LIBXML_NSCLEAN;
41+
/** @TODO: LIBXML_NO_XXE is available as of PHP 8.4 */
42+
$options = LIBXML_NONET | LIBXML_PARSEHUGE /* | LIBXML_NO_XXE */;
4243
if (defined('LIBXML_COMPACT')) {
4344
$options |= LIBXML_COMPACT;
4445
}

0 commit comments

Comments
 (0)