From feb20ad8b27e973c95d9ebf3b41aa3a125318ef5 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 4 Oct 2014 11:10:33 +0200 Subject: create files for next gen parser --- utility/faviconfetcher.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'utility') diff --git a/utility/faviconfetcher.php b/utility/faviconfetcher.php index 16c188313..a4ae54a6e 100644 --- a/utility/faviconfetcher.php +++ b/utility/faviconfetcher.php @@ -13,6 +13,8 @@ namespace OCA\News\Utility; +use \ZendXml\Security; + class FaviconFetcher { @@ -79,7 +81,7 @@ class FaviconFetcher { $document = new \DOMDocument(); /** @noinspection PhpUndefinedFieldInspection */ $loadEntities = libxml_disable_entity_loader(true); - @$document->loadHTML($file->body); + @$document->loadHTML($file->body, LIBXML_NONET); libxml_disable_entity_loader($loadEntities); if($document) { @@ -98,7 +100,7 @@ class FaviconFetcher { return null; } - + private function getFile($url) { if(trim($this->config->getProxyHost()) === '') { return $this->apiFactory->getFile($url, 10, 5, null, null, false, -- cgit v1.2.3