fix: Revert external url support in icon as it’s not allowed

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/43251/head
Côme Chilliet 4 months ago committed by Côme Chilliet
parent 4fb5c15db5
commit 4f69f49a75

@ -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']);
}
}

Loading…
Cancel
Save