diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2024-05-16 16:42:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-16 16:42:05 +0200 |
commit | 55dd8087c4f44264b70808b2b8716088c37a0339 (patch) | |
tree | 27351c6060bed27285803503799897f451df5fb5 /lib/private/Preview/Photoshop.php | |
parent | 99d9244ef6a2c13244219e78527b374558ccaedd (diff) | |
parent | 312dc5612fab1e610270a97a6c82a92947425228 (diff) | |
download | nextcloud-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.php | 7 |
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)/'; + } } |