Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-02-28 17:40:33 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2022-04-04 18:02:19 +0300
commiteaff81c831ca82cca63712f180d68a33196c3319 (patch)
tree62fdb09a6394de6b3ca7c9154ef70d04dee453ba /lib/private
parent0ab5daf9dfaf1ea13b2ded09d8b0727fb0c448dd (diff)
Ignore errors when searching for bundled previewbackport/31380/stable22
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')
-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 f026d3259f5..6b5a8aa2d12 100644
--- a/lib/private/Preview/Bundled.php
+++ b/lib/private/Preview/Bundled.php
@@ -46,7 +46,7 @@ abstract class Bundled extends ProviderV2 {
$image->fixOrientation();
return $image;
- } catch (\Exception $e) {
+ } catch (\Throwable $e) {
return null;
}
}