Skip to content

Commit

Permalink
Fix whitelist federation for subdomains (mastodon#12435)
Browse files Browse the repository at this point in the history
  • Loading branch information
noiob authored and multiple creatures committed Feb 21, 2020
1 parent 99076be commit 855de12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/domain_control_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def domain_not_allowed?(uri_or_domain)

domain = begin
if uri_or_domain.include?('://')
Addressable::URI.parse(uri_or_domain).domain
Addressable::URI.parse(uri_or_domain).host
else
uri_or_domain
end
Expand Down

0 comments on commit 855de12

Please sign in to comment.