summaryrefslogtreecommitdiffstats
path: root/lib/Db
diff options
context:
space:
mode:
authorSean Molenaar <SMillerDev@users.noreply.github.com>2019-03-22 09:19:05 +0100
committerBenjamin Brahmer <info@b-brahmer.de>2019-03-22 09:19:05 +0100
commit62bd42cb17cefb3080f7aa61d4701acf1af7f412 (patch)
treeb49526782aed98852230750e444ebb566a8ac9e5 /lib/Db
parent730ce50b444f06286443a74b7e6cb1d627c5f014 (diff)
Stop assuming encoding of xml, let simplexml throw silently (#457)
Diffstat (limited to 'lib/Db')
-rw-r--r--lib/Db/Item.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Db/Item.php b/lib/Db/Item.php
index 710f239d4..5491dff25 100644
--- a/lib/Db/Item.php
+++ b/lib/Db/Item.php
@@ -503,6 +503,7 @@ class Item extends Entity implements IAPI, \JsonSerializable
{
return (
stripos($mime, 'audio/') !== false ||
+ stripos($mime, 'image/') !== false ||
stripos($mime, 'video/') !== false);
}
}