From 3c3fbcc0354f5cefbe185bf48ed53c89fed11b57 Mon Sep 17 00:00:00 2001 From: rkemmere Date: Thu, 15 Dec 2022 15:57:29 +0100 Subject: [PATCH] Check if baseURI is set --- plugins/server/lib/project-manager-favicon.cronjob.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/server/lib/project-manager-favicon.cronjob.php b/plugins/server/lib/project-manager-favicon.cronjob.php index ecd6956..2477541 100644 --- a/plugins/server/lib/project-manager-favicon.cronjob.php +++ b/plugins/server/lib/project-manager-favicon.cronjob.php @@ -76,7 +76,9 @@ public function getFavicon ($url) { if (!$dom) { // $error[]='Error parsing the DOM of the file'; } else { - $domxml = simplexml_import_dom($dom); + + if (!is_null($dom->baseURI)) + $domxml = simplexml_import_dom($dom); if ($domxml) {