We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ace522 commit 0fff786Copy full SHA for 0fff786
1 file changed
src/DOMDocumentFactory.php
@@ -14,6 +14,7 @@
14
use function file_get_contents;
15
use function libxml_clear_errors;
16
use function libxml_get_last_error;
17
+use function libxml_set_external_entity_loader;
18
use function libxml_use_internal_errors;
19
use function sprintf;
20
@@ -30,6 +31,7 @@ final class DOMDocumentFactory
30
31
*/
32
public static function fromString(string $xml): DOMDocument
33
{
34
+ libxml_set_external_entity_loader(null);
35
Assert::notWhitespaceOnly($xml);
36
37
$internalErrors = libxml_use_internal_errors(true);
0 commit comments