mirror of
https://github.com/flarum/framework.git
synced 2025-02-02 15:10:45 +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
b7586e819b
commit
ddfc41c6f7
|
@ -15,7 +15,7 @@ class AvatarValidator extends AbstractValidator
|
|||
protected $rules = [
|
||||
'avatar' => [
|
||||
'required',
|
||||
'image',
|
||||
'mimes:jpeg,png,bmp,gif',
|
||||
'max:2048'
|
||||
]
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue
Block a user