diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2019-06-26 14:58:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-26 14:58:43 +0200 |
commit | 810e5f4864ebb2aaa0a13b43bb3690f03574d840 (patch) | |
tree | b620fe5b67b8456203c554695f91fb2aec29843c | |
parent | 0e0801391ea1b3f33eefb30c51916924d8588a48 (diff) | |
parent | ec6ce43053bcf3963ca44e04f13cdab2d25282b8 (diff) | |
download | nextcloud-server-810e5f4864ebb2aaa0a13b43bb3690f03574d840.tar.gz nextcloud-server-810e5f4864ebb2aaa0a13b43bb3690f03574d840.zip |
Merge pull request #16095 from nextcloud/bugfix/theming-filetypes
Only return link to themed icon if file exists
-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; |