]> source.dussan.org Git - nextcloud-server.git/commitdiff
OC_Image::_output() - throw exception instead of falling back to png
authorGeorg Ehrke <developer@georgehrke.com>
Fri, 14 Mar 2014 17:19:16 +0000 (18:19 +0100)
committerGeorg Ehrke <developer@georgehrke.com>
Fri, 14 Mar 2014 17:19:16 +0000 (18:19 +0100)
lib/private/image.php

index 4aa14be109c53d08ac405be37e36bf157f8305c3..1cd7399cce1aa1e5c33a6bbf04e51e8b935b8963 100644 (file)
@@ -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 {