Skip to content

Commit 525095b

Browse files
committed
Fix typo in or'ing of NO_XXE constant
Thanks for reporting @matthew-8925 Closes: #35
1 parent 9cf986e commit 525095b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DOMDocumentFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function fromString(
5454

5555
// If LIBXML_NO_XXE is available and option not set
5656
if (func_num_args() === 1 && defined('LIBXML_NO_XXE')) {
57-
$options != LIBXML_NO_XXE;
57+
$options |= LIBXML_NO_XXE;
5858
}
5959

6060
$domDocument = self::create();

0 commit comments

Comments
 (0)