From 879a7ba33fc05e8effd7132545b33d8e22257391 Mon Sep 17 00:00:00 2001 From: Nicolas Florentin Date: Fri, 29 Jul 2022 14:53:08 +0200 Subject: [PATCH] improvement: makes rmagick, minimagick and mime types less explicit to improve security --- config/locales/en.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 4ee542f12..5521ed13a 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -19,9 +19,9 @@ en: extension_whitelist_error: "You are not allowed to upload %{extension} files, allowed types: %{allowed_types}" extension_blacklist_error: "You are not allowed to upload %{extension} files, prohibited types: %{prohibited_types}" content_type_whitelist_error: "You are not allowed to upload %{content_type} files, allowed types: %{allowed_types}" - rmagick_processing_error: "Failed to manipulate with rmagick, maybe it is not an image? Original Error: %{e}" - mime_types_processing_error: "Failed to process file with MIME::Types, maybe not valid content-type? Original Error: %{e}" - mini_magick_processing_error: "Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: %{e}" + rmagick_processing_error: "Failed to manipulate with rmagick, maybe it is not an image?" + mime_types_processing_error: "Failed to process file with MIME::Types, maybe not valid content-type?" + mini_magick_processing_error: "Failed to manipulate the file, maybe it is not an image?" wrong_size: "is the wrong size (should be %{file_size})" size_too_small: "is too small (should be at least %{file_size})" size_too_big: "is too big (should be at most %{file_size})"