Skip to content

Commit

Permalink
allow display of svg files in browser. fix #4563
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Aug 29, 2023
1 parent bfa65ec commit 9326b06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/DownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public function getResponse(): Response
'image/jpeg',
'image/png',
'video/mp4',
'image/svg+xml',
'text/plain',
);
if (!in_array($mime, $safeMimeTypes, true)) {
Expand Down

0 comments on commit 9326b06

Please sign in to comment.