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:
authorLin Jen-Shin <godfat@godfat.org>2017-10-02 09:45:58 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-10-02 09:45:58 +0300
commite9ffa3395127618add901b9fc16117fb88c26b21 (patch)
tree99f013ec8e4e03742797df69c019bc0b205b5786 /lib/gitlab/url_sanitizer.rb
parent9401c137fdb6fd217cd81528c2d288f465262723 (diff)
Freeze the constant array
Diffstat (limited to 'lib/gitlab/url_sanitizer.rb')
-rw-r--r--lib/gitlab/url_sanitizer.rb2
1 files changed, 1 insertions, 1 deletions
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)