diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-02-01 10:15:45 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-02-12 10:14:21 +0000 |
commit | ce808eefb5f5528542e2cc4c65ab1dcdabdf03b3 (patch) | |
tree | cc9b5f5e6336f83a7ce2351347d0e06a41802df8 /core/Controller/NavigationController.php | |
parent | eba0ff339b340ba4623fa9c44117f729d8a6ffed (diff) | |
download | nextcloud-server-ce808eefb5f5528542e2cc4c65ab1dcdabdf03b3.tar.gz nextcloud-server-ce808eefb5f5528542e2cc4c65ab1dcdabdf03b3.zip |
fix: Revert external url support in icon as it’s not allowed
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core/Controller/NavigationController.php')
-rw-r--r-- | core/Controller/NavigationController.php | 2 |
1 files changed, 1 insertions, 1 deletions
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']); } } |