diff options
Diffstat (limited to 'lib/gitlab/url_blocker.rb')
-rw-r--r-- | lib/gitlab/url_blocker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/url_blocker.rb b/lib/gitlab/url_blocker.rb index 31256101bd2..57d3b3ec6f9 100644 --- a/lib/gitlab/url_blocker.rb +++ b/lib/gitlab/url_blocker.rb @@ -260,7 +260,7 @@ module Gitlab return true if /\n|\r/.match?(url) # Google Cloud Storage uses a multi-line, encoded Signature query string - return false if %w(http https).include?(parsed_url.scheme&.downcase) + return false if %w[http https].include?(parsed_url.scheme&.downcase) CGI.unescape(url) =~ /\n|\r/ end |