forked from leftypol/leftypol
LibMagickMediaHandler.php: restrict support mimes to vichan subset
This commit is contained in:
parent
3e6c97e25a
commit
3cddb0272b
1 changed files with 3 additions and 0 deletions
|
@ -202,6 +202,9 @@ class LibMagickMediaHandler implements MediaHandler {
|
|||
}
|
||||
|
||||
public function supportsMime(string $mime): bool {
|
||||
if (!\in_array($mime, Metadata\SUPPORTED_IMAGE_MIME_TYPES)) {
|
||||
return false;
|
||||
}
|
||||
$ext = Metadata\mime_to_ext($mime);
|
||||
if ($ext === null) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue