From d08b7d208d738dea303027a1f3b4c2035044d110 Mon Sep 17 00:00:00 2001 From: Basil Date: Tue, 24 May 2022 13:52:09 +0200 Subject: [PATCH] Issue 713 (#717) * default blackliste svg mimetype * changelog [skip ci] --- CHANGELOG.md | 4 ++++ src/storage/BaseFileSystemStorage.php | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46b943f6d..4a3aa7666 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). In order to read more about upgrading and BC breaks have a look at the [UPGRADE Document](UPGRADE.md). +## 4.4.1 () + ++ [#713](https://github.com/luyadev/luya-module-admin/issues/713) Blacklist SVG mime type by default. In order to enable SVG Upload use `'whitelistMimeTypes' => ['image/svg+xml']`. + ## 4.4.0 (19. May 2022) + [#714](https://github.com/luyadev/luya-module-admin/pull/714) Improve the sorting ability by adding create, update and delete events which are attached from the SortableTrait. Sorting over pagination or swap index from form input is now possible too. diff --git a/src/storage/BaseFileSystemStorage.php b/src/storage/BaseFileSystemStorage.php index 1ec6aaf70..61c741371 100644 --- a/src/storage/BaseFileSystemStorage.php +++ b/src/storage/BaseFileSystemStorage.php @@ -238,6 +238,7 @@ abstract public function fileSystemDeleteFile($fileName); 'text/x-php', 'text/plain', 'application/x-spss', + 'image/svg+xml', ]; /**