diff options
author | Varun Patil <varunpatil@ucla.edu> | 2024-04-07 19:10:19 -0700 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-05-15 20:16:43 +0000 |
commit | 312dc5612fab1e610270a97a6c82a92947425228 (patch) | |
tree | 6b0d6002a25e288e6118a718caf9912dd57bcf13 /lib/private/Preview/PDF.php | |
parent | 10dfb76f283a360e704839e4eca647806db78411 (diff) | |
download | nextcloud-server-312dc5612fab1e610270a97a6c82a92947425228.tar.gz nextcloud-server-312dc5612fab1e610270a97a6c82a92947425228.zip |
fix(preview): check mime type before processing with Imagick
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
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/'; + } } |