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

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/43520/head
Côme Chilliet 2024-02-01 10:15:45 +07:00 committed by backportbot[bot]
parent eba0ff339b
commit ce808eefb5
1 changed files with 1 additions and 1 deletions

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