Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-12-09 14:44:01 +0300
committerJulius Haertl <jus@bitgrid.net>2016-12-09 14:54:03 +0300
commit5fbadee95ff11429739dc7cf818d93d0c549a73f (patch)
treed9d5ff9ae970d665899c32c1bea4ada7f0426faa /apps/theming/lib/Controller
parente3b2832ee192a9cc961342420efe6ec077638461 (diff)
Check if image files for theming are empty
Signed-off-by: Julius Haertl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming/lib/Controller')
-rw-r--r--apps/theming/lib/Controller/IconController.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/theming/lib/Controller/IconController.php b/apps/theming/lib/Controller/IconController.php
index 4c25d911e5e..7c4e209d0df 100644
--- a/apps/theming/lib/Controller/IconController.php
+++ b/apps/theming/lib/Controller/IconController.php
@@ -94,6 +94,9 @@ class IconController extends Controller {
$iconFile = $this->imageManager->getCachedImage("icon-" . $app . '-' . str_replace("/","_",$image));
} catch (NotFoundException $exception) {
$icon = $this->iconBuilder->colorSvg($app, $image);
+ if ($icon === false || $icon === "") {
+ return new NotFoundResponse();
+ }
$iconFile = $this->imageManager->setCachedImage("icon-" . $app . '-' . str_replace("/","_",$image), $icon);
}
if ($iconFile !== false) {