Skip to content

Commit 8760b89

Browse files
committed
disabled network access when loading XML documents
1 parent cfea6c0 commit 8760b89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Encoder/XmlEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function decode($data, $format)
5959
libxml_clear_errors();
6060

6161
$dom = new \DOMDocument();
62-
$dom->loadXML($data);
62+
$dom->loadXML($data, LIBXML_NONET);
6363

6464
libxml_use_internal_errors($internalErrors);
6565
libxml_disable_entity_loader($disableEntities);

0 commit comments

Comments
 (0)