From 3527adbbe1ab947ca6e6edbba889539eea444915 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Fri, 14 Mar 2014 18:19:16 +0100 Subject: [PATCH] OC_Image::_output() - throw exception instead of falling back to png --- lib/private/image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/image.php b/lib/private/image.php index 4aa14be109c..1cd7399cce1 100644 --- a/lib/private/image.php +++ b/lib/private/image.php @@ -217,7 +217,7 @@ class OC_Image { $imageType = IMAGETYPE_BMP; break; default: - $imageType = IMAGETYPE_PNG; + throw new Exception('\OC_Image::_output(): "' . $mimeType . '" is not supported when forcing a specific output format'); break; } } else { -- 2.39.5