From ce808eefb5f5528542e2cc4c65ab1dcdabdf03b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Thu, 1 Feb 2024 10:15:45 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20Revert=20external=20url=20support=20in?= =?UTF-8?q?=20icon=20as=20it=E2=80=99s=20not=20allowed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- core/Controller/NavigationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Controller/NavigationController.php b/core/Controller/NavigationController.php index 61f8fe1d5e7..2432df937ce 100644 --- a/core/Controller/NavigationController.php +++ b/core/Controller/NavigationController.php @@ -118,7 +118,7 @@ class NavigationController extends OCSController { if (!str_starts_with($entry['href'], 'https://') && !str_starts_with($entry['href'], 'http://')) { $entry['href'] = $this->urlGenerator->getAbsoluteURL($entry['href']); } - if (!str_starts_with($entry['icon'], 'https://') && !str_starts_with($entry['icon'], 'http://')) { + if (!str_starts_with($entry['icon'], $this->urlGenerator->getBaseUrl())) { $entry['icon'] = $this->urlGenerator->getAbsoluteURL($entry['icon']); } }