diff --git a/lib/gitlab/url_sanitizer.rb b/lib/gitlab/url_sanitizer.rb index 9931abe8a6e..1caa791c1be 100644 --- a/lib/gitlab/url_sanitizer.rb +++ b/lib/gitlab/url_sanitizer.rb @@ -1,6 +1,6 @@ module Gitlab class UrlSanitizer - ALLOWED_SCHEMES = %w[http https ssh git] + ALLOWED_SCHEMES = %w[http https ssh git].freeze def self.sanitize(content) regexp = URI::Parser.new.make_regexp(ALLOWED_SCHEMES)