diff options
Diffstat (limited to 'app/models/abuse_report.rb')
-rw-r--r-- | app/models/abuse_report.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/abuse_report.rb b/app/models/abuse_report.rb index 19dc0e40564..e19a75a68e8 100644 --- a/app/models/abuse_report.rb +++ b/app/models/abuse_report.rb @@ -205,11 +205,12 @@ class AbuseReport < ApplicationRecord return if links_to_spam.blank? links_to_spam.each do |link| - Gitlab::UrlBlocker.validate!( + Gitlab::HTTP_V2::UrlBlocker.validate!( link, schemes: %w[http https], allow_localhost: true, - dns_rebind_protection: true + dns_rebind_protection: true, + deny_all_requests_except_allowed: Gitlab::CurrentSettings.deny_all_requests_except_allowed? ) next unless link.length > MAX_CHAR_LIMIT_URL |