diff --git a/framework/core/composer.json b/framework/core/composer.json index 4f4abf887..c52546437 100644 --- a/framework/core/composer.json +++ b/framework/core/composer.json @@ -79,6 +79,7 @@ "symfony/config": "^4.3.4", "symfony/console": "^4.3.4", "symfony/event-dispatcher": "^4.3.4", + "symfony/mime": "^5.2.0", "symfony/translation": "^4.3.4", "symfony/yaml": "^4.3.4", "tobscure/json-api": "^0.3.0", diff --git a/framework/core/src/User/AvatarValidator.php b/framework/core/src/User/AvatarValidator.php index 19ee3ca0e..e6fe0df3b 100644 --- a/framework/core/src/User/AvatarValidator.php +++ b/framework/core/src/User/AvatarValidator.php @@ -80,6 +80,6 @@ class AvatarValidator extends AbstractValidator protected function getAllowedTypes() { - return ['jpeg', 'png', 'bmp', 'gif']; + return ['jpg', 'png', 'bmp', 'gif']; } }