mirror of
https://github.com/humhub/humhub.git
synced 2025-03-14 20:19:47 +01:00
Fix: SVG file uploads broken (mime type: image/svg+xml)
This commit is contained in:
parent
76ca0e522d
commit
0b08cd2325
@ -3,7 +3,7 @@ HumHub Change Log
|
||||
|
||||
1.2.0 (in developement)
|
||||
--------------------------------
|
||||
|
||||
- Fix: SVG file uploads broken (mime type: image/svg+xml)
|
||||
|
||||
1.2.0-beta.4 (March 28, 2017)
|
||||
--------------------------------
|
||||
|
@ -59,7 +59,7 @@ class File extends FileCompat
|
||||
{
|
||||
return [
|
||||
[['mime_type'], 'string', 'max' => 150],
|
||||
[['mime_type'], 'match', 'not' => true, 'pattern' => '/[^a-zA-Z0-9\.ä\/\-]/', 'message' => Yii::t('FileModule.base', 'Invalid Mime-Type')],
|
||||
[['mime_type'], 'match', 'not' => true, 'pattern' => '/[^a-zA-Z0-9\.ä\/\-\+]/', 'message' => Yii::t('FileModule.base', 'Invalid Mime-Type')],
|
||||
[['file_name', 'title'], 'string', 'max' => 255],
|
||||
[['size'], 'integer'],
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user