aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/Photoshop.php
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-05-16 16:42:05 +0200
committerGitHub <noreply@github.com>2024-05-16 16:42:05 +0200
commit55dd8087c4f44264b70808b2b8716088c37a0339 (patch)
tree27351c6060bed27285803503799897f451df5fb5 /lib/private/Preview/Photoshop.php
parent99d9244ef6a2c13244219e78527b374558ccaedd (diff)
parent312dc5612fab1e610270a97a6c82a92947425228 (diff)
downloadnextcloud-server-55dd8087c4f44264b70808b2b8716088c37a0339.tar.gz
nextcloud-server-55dd8087c4f44264b70808b2b8716088c37a0339.zip
Merge pull request #45339 from nextcloud/backport/44710/stable28
[stable28] fix(preview): check mime type before processing with Imagick
Diffstat (limited to 'lib/private/Preview/Photoshop.php')
-rw-r--r--lib/private/Preview/Photoshop.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/Preview/Photoshop.php b/lib/private/Preview/Photoshop.php
index 9d79abf8191..dbe2e68192e 100644
--- a/lib/private/Preview/Photoshop.php
+++ b/lib/private/Preview/Photoshop.php
@@ -31,4 +31,11 @@ class Photoshop extends Bitmap {
public function getMimeType(): string {
return '/application\/x-photoshop/';
}
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getAllowedMimeTypes(): string {
+ return '/(application|image)\/(x-photoshop|x-psd)/';
+ }
}