Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/sanitizers/exif.rb')
-rw-r--r--lib/gitlab/sanitizers/exif.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/gitlab/sanitizers/exif.rb b/lib/gitlab/sanitizers/exif.rb
index e302729df66..93deb97c841 100644
--- a/lib/gitlab/sanitizers/exif.rb
+++ b/lib/gitlab/sanitizers/exif.rb
@@ -4,7 +4,7 @@ module Gitlab
module Sanitizers
class Exif
# these tags are not removed from the image
- WHITELISTED_TAGS = %w(
+ WHITELISTED_TAGS = %w[
ResolutionUnit
XResolution
YResolution
@@ -17,13 +17,13 @@ module Gitlab
Copyright
CopyrightNotice
Orientation
- ).freeze
+ ].freeze
# these tags are common in exiftool output, these
# do not contain any sensitive information, but
# we don't need to preserve them when removing
# exif tags
- IGNORED_TAGS = %w(
+ IGNORED_TAGS = %w[
ColorComponents
EncodingProcess
ExifByteOrder
@@ -41,11 +41,11 @@ module Gitlab
FileType
FileTypeExtension
MIMEType
- ).freeze
+ ].freeze
ALLOWED_TAGS = WHITELISTED_TAGS + IGNORED_TAGS
EXCLUDE_PARAMS = WHITELISTED_TAGS.map { |tag| "-#{tag}" }
- ALLOWED_MIME_TYPES = %w(image/jpeg image/tiff).freeze
+ ALLOWED_MIME_TYPES = %w[image/jpeg image/tiff].freeze
attr_reader :logger