mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08: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:
parent
d5797dae79
commit
0d99f75a6d
|
@ -15,7 +15,7 @@ class AvatarValidator extends AbstractValidator
|
||||||
protected $rules = [
|
protected $rules = [
|
||||||
'avatar' => [
|
'avatar' => [
|
||||||
'required',
|
'required',
|
||||||
'image',
|
'mimes:jpeg,png,bmp,gif',
|
||||||
'max:2048'
|
'max:2048'
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user