Merge pull request #1980 from basecamp/reverv-ssrf-acronym
Rever to using Ssrf instead of SSRF
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
module SSRFProtection
|
||||
module SsrfProtection
|
||||
extend self
|
||||
|
||||
DNS_RESOLUTION_TIMEOUT = 2
|
||||
|
||||
@@ -70,7 +70,7 @@ class Webhook::Delivery < ApplicationRecord
|
||||
|
||||
def resolved_ip
|
||||
return @resolved_ip if defined?(@resolved_ip)
|
||||
@resolved_ip = SSRFProtection.resolve_public_ip(uri.host)
|
||||
@resolved_ip = SsrfProtection.resolve_public_ip(uri.host)
|
||||
end
|
||||
|
||||
def uri
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
# These inflection rules are supported but not enabled by default:
|
||||
ActiveSupport::Inflector.inflections(:en) do |inflect|
|
||||
inflect.acronym "SQLite"
|
||||
inflect.acronym "SSRF"
|
||||
|
||||
inflect.singular "quotas", "quota"
|
||||
inflect.plural "quota", "quotas"
|
||||
|
||||
Reference in New Issue
Block a user