summaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/Bundled.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-02-28 15:40:33 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-02-28 15:43:07 +0100
commit13c11208d48dd6881f6afcab88d78bf6f4ba75da (patch)
tree4533a6b844d8086b18b82a4708ce9acc51c3672d /lib/private/Preview/Bundled.php
parentc203bc71ada7da3642c8465b3ffc2cd80eea6743 (diff)
downloadnextcloud-server-13c11208d48dd6881f6afcab88d78bf6f4ba75da.tar.gz
nextcloud-server-13c11208d48dd6881f6afcab88d78bf6f4ba75da.zip
Ignore errors when searching for bundled preview
When an odt file is xml and not zip, it would throw a ValueError. It will now just ignore this file and return null for the preview. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Preview/Bundled.php')
-rw-r--r--lib/private/Preview/Bundled.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/Bundled.php b/lib/private/Preview/Bundled.php
index e0551bd392b..063c69ba5dd 100644
--- a/lib/private/Preview/Bundled.php
+++ b/lib/private/Preview/Bundled.php
@@ -48,7 +48,7 @@ abstract class Bundled extends ProviderV2 {
$image->fixOrientation();
return $image;
- } catch (\Exception $e) {
+ } catch (\Throwable $e) {
return null;
}
}