diff options
Diffstat (limited to 'lib/release_highlights/validator/entry.rb')
-rw-r--r-- | lib/release_highlights/validator/entry.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/release_highlights/validator/entry.rb b/lib/release_highlights/validator/entry.rb index 3c83ca21123..133afcb52ae 100644 --- a/lib/release_highlights/validator/entry.rb +++ b/lib/release_highlights/validator/entry.rb @@ -11,7 +11,7 @@ module ReleaseHighlights validates :title, :body, :stage, presence: true validates :'self-managed', :'gitlab-com', inclusion: { in: [true, false], message: "must be a boolean" } - validates :url, :image_url, format: { with: URI::DEFAULT_PARSER.make_regexp, message: 'must be a URL' } + validates :url, :image_url, public_url: { dns_rebind_protection: true } validates :release, numericality: true validate :validate_published_at validate :validate_packages |