mirror of
https://github.com/nextcloud/server.git
synced 2026-03-02 21:41:12 -05:00
fix: Revert external url support in icon as it’s not allowed
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
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']);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue