method
sanitize_hosts
v6.1.3.1 -
Show latest stable
- Class:
ActionDispatch::HostAuthorization::Permissions
sanitize_hosts(hosts)private
No documentation available.
# File actionpack/lib/action_dispatch/middleware/host_authorization.rb, line 38
def sanitize_hosts(hosts)
Array(hosts).map do |host|
case host
when Regexp then sanitize_regexp(host)
when String then sanitize_string(host)
else host
end
end
end