Skip to content

Commit 219b76f

Browse files
committed
Add LIBXML_NOENT to the default options; this is defense-in-depth, because we already block any DOCTYPE
1 parent 4e6b8b0 commit 219b76f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/XML/DOMDocumentFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class DOMDocumentFactory
2929
* @var non-negative-int
3030
* TODO: Add LIBXML_NO_XXE to the defaults when PHP 8.4.0 + libxml 2.13.0 become generally available
3131
*/
32-
public const int DEFAULT_OPTIONS = \LIBXML_COMPACT | \LIBXML_NONET | \LIBXML_NSCLEAN;
32+
public const int DEFAULT_OPTIONS = \LIBXML_COMPACT | \LIBXML_NOENT | \LIBXML_NONET | \LIBXML_NSCLEAN;
3333

3434

3535
/**

0 commit comments

Comments
 (0)