diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-06-26 10:53:49 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-06-26 10:53:49 +0200 |
commit | ec6ce43053bcf3963ca44e04f13cdab2d25282b8 (patch) | |
tree | bcf515fe5ebcf94a3fc397e99b5a9667a668277b /apps/theming | |
parent | bc276cdd83aeb40e70ccca4573b4318ca7dceb81 (diff) | |
download | nextcloud-server-ec6ce43053bcf3963ca44e04f13cdab2d25282b8.tar.gz nextcloud-server-ec6ce43053bcf3963ca44e04f13cdab2d25282b8.zip |
Only return link to themed icon if file exists
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming')
-rw-r--r-- | apps/theming/lib/ThemingDefaults.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index 6e93515eb5d..8e65fafe850 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -349,7 +349,7 @@ class ThemingDefaults extends \OC_Defaults { } catch (AppPathNotFoundException $e) {} return $this->urlGenerator->linkToRoute('theming.Theming.getManifest') . '?v=' . $cacheBusterValue; } - if (strpos($image, 'filetypes/') === 0) { + if (strpos($image, 'filetypes/') === 0 && file_exists(\OC::$SERVERROOT . '/core/img/' . $image )) { return $this->urlGenerator->linkToRoute('theming.Icon.getThemedIcon', ['app' => $app, 'image' => $image]); } return false; |