diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2024-05-16 16:42:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-16 16:42:21 +0200 |
commit | c6ce255404cfeca9a1be1ddbb5fcb7f10ef7b0fd (patch) | |
tree | 14beeaa9feb545da0571f3d00b4e42ea5bf18b2b /lib/private/Preview/PDF.php | |
parent | 63da6067b4318f3d3bcc80f5f7ab574fe55ebd11 (diff) | |
parent | 7fd3aa1f72d5bc253cdf661681899ebd9328b204 (diff) | |
download | nextcloud-server-c6ce255404cfeca9a1be1ddbb5fcb7f10ef7b0fd.tar.gz nextcloud-server-c6ce255404cfeca9a1be1ddbb5fcb7f10ef7b0fd.zip |
Merge pull request #45338 from nextcloud/backport/44710/stable27
[stable27] fix(preview): check mime type before processing with Imagick
Diffstat (limited to 'lib/private/Preview/PDF.php')
-rw-r--r-- | lib/private/Preview/PDF.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/Preview/PDF.php b/lib/private/Preview/PDF.php index 405fd1545f9..c387e72dfe3 100644 --- a/lib/private/Preview/PDF.php +++ b/lib/private/Preview/PDF.php @@ -31,4 +31,11 @@ class PDF extends Bitmap { public function getMimeType(): string { return '/application\/pdf/'; } + + /** + * {@inheritDoc} + */ + protected function getAllowedMimeTypes(): string { + return '/application\/pdf/'; + } } |