summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2019-06-26 14:58:43 +0200
committerGitHub <noreply@github.com>2019-06-26 14:58:43 +0200
commit810e5f4864ebb2aaa0a13b43bb3690f03574d840 (patch)
treeb620fe5b67b8456203c554695f91fb2aec29843c
parent0e0801391ea1b3f33eefb30c51916924d8588a48 (diff)
parentec6ce43053bcf3963ca44e04f13cdab2d25282b8 (diff)
downloadnextcloud-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.php2
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;