Skip to content

Commit

Permalink
Fix typo in or'ing of NO_XXE constant
Browse files Browse the repository at this point in the history
Thanks for reporting @matthew-8925

Closes: #35
  • Loading branch information
thijskh committed Dec 3, 2024
1 parent 9cf986e commit 525095b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DOMDocumentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static function fromString(

// If LIBXML_NO_XXE is available and option not set
if (func_num_args() === 1 && defined('LIBXML_NO_XXE')) {
$options != LIBXML_NO_XXE;
$options |= LIBXML_NO_XXE;
}

$domDocument = self::create();
Expand Down

0 comments on commit 525095b

Please sign in to comment.