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/hotlinking_detector.rb')
-rw-r--r--lib/gitlab/hotlinking_detector.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/hotlinking_detector.rb b/lib/gitlab/hotlinking_detector.rb
index e81983cd014..bfcc1735cb0 100644
--- a/lib/gitlab/hotlinking_detector.rb
+++ b/lib/gitlab/hotlinking_detector.rb
@@ -2,11 +2,11 @@
module Gitlab
class HotlinkingDetector
- IMAGE_FORMATS = %w(image/jpeg image/apng image/png image/webp image/svg+xml image/*).freeze
- MEDIA_FORMATS = %w(video/webm video/ogg video/* application/ogg audio/webm audio/ogg audio/wav audio/*).freeze
- CSS_FORMATS = %w(text/css).freeze
+ IMAGE_FORMATS = %w[image/jpeg image/apng image/png image/webp image/svg+xml image/*].freeze
+ MEDIA_FORMATS = %w[video/webm video/ogg video/* application/ogg audio/webm audio/ogg audio/wav audio/*].freeze
+ CSS_FORMATS = %w[text/css].freeze
INVALID_FORMATS = (IMAGE_FORMATS + MEDIA_FORMATS + CSS_FORMATS).freeze
- INVALID_FETCH_MODES = %w(cors no-cors websocket).freeze
+ INVALID_FETCH_MODES = %w[cors no-cors websocket].freeze
class << self
def intercept_hotlinking?(request)