mirror of
https://github.com/flarum/core.git
synced 2025-07-20 08:11:27 +02:00
Disallow svg images to be erroneously uploaded
Laravel's `image` validation rule allows svg files to pass validation, but we can't handle svgs so it would result in an unspecified 500 error which isn't nice.
This commit is contained in:
@@ -15,7 +15,7 @@ class AvatarValidator extends AbstractValidator
|
||||
protected $rules = [
|
||||
'avatar' => [
|
||||
'required',
|
||||
'image',
|
||||
'mimes:jpeg,png,bmp,gif',
|
||||
'max:2048'
|
||||
]
|
||||
];
|
||||
|
Reference in New Issue
Block a user