summaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-06-26 10:53:49 +0200
committerJulius Härtl <jus@bitgrid.net>2019-06-26 10:53:49 +0200
commitec6ce43053bcf3963ca44e04f13cdab2d25282b8 (patch)
treebcf515fe5ebcf94a3fc397e99b5a9667a668277b /apps/theming
parentbc276cdd83aeb40e70ccca4573b4318ca7dceb81 (diff)
downloadnextcloud-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.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;