diff options
author | Georg Ehrke <developer@georgehrke.com> | 2014-11-23 19:11:03 +0100 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2014-11-23 19:11:03 +0100 |
commit | 45d985f2d8f3df26960b36e7cb6d75513e5e7dfc (patch) | |
tree | d4a5e5b13607ef7aaa11f4216845a2dfa1a3de5d /lib/private/preview.php | |
parent | a3496cf7fab6f4e9d4ce804e3b3ce0fc83a863dc (diff) | |
download | nextcloud-server-45d985f2d8f3df26960b36e7cb6d75513e5e7dfc.tar.gz nextcloud-server-45d985f2d8f3df26960b36e7cb6d75513e5e7dfc.zip |
remove ugly hack and don't use OC\Preview\Image for tiffs and svgs
Diffstat (limited to 'lib/private/preview.php')
-rw-r--r-- | lib/private/preview.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/private/preview.php b/lib/private/preview.php index f50bdcb4c9e..778007b21fd 100644 --- a/lib/private/preview.php +++ b/lib/private/preview.php @@ -892,16 +892,6 @@ class Preview { self::initProviders(); } - // FIXME: Ugly hack to prevent SVG of being returned if the SVG - // provider is not enabled. - // This is required because the preview system is designed in a - // bad way and relies on opt-in with asterisks (i.e. image/*) - // which will lead to the fact that a SVG will also match the image - // provider. - if($mimeType === 'image/svg+xml' && !array_key_exists('/image\/svg\+xml/', self::$providers)) { - return false; - } - foreach(self::$providers as $supportedMimetype => $provider) { if(preg_match($supportedMimetype, $mimeType)) { return true; |