From 26d68e435ee70967c68ca6c56d3fba53c5a7e935 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 27 Aug 2012 13:36:18 +0200 Subject: [PATCH] disabled network access when loading XML documents --- Loader/XmlFileLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Loader/XmlFileLoader.php b/Loader/XmlFileLoader.php index d7f1677b..6cca9e40 100644 --- a/Loader/XmlFileLoader.php +++ b/Loader/XmlFileLoader.php @@ -155,7 +155,7 @@ protected function loadFile($file) $dom = new \DOMDocument(); $dom->validateOnParse = true; - if (!$dom->load($file, defined('LIBXML_COMPACT') ? LIBXML_COMPACT : 0)) { + if (!$dom->load($file, LIBXML_NONET | (defined('LIBXML_COMPACT') ? LIBXML_COMPACT : 0))) { throw new \InvalidArgumentException(implode("\n", $this->getXmlErrors($internalErrors))); } $dom->normalizeDocument();