diff options
author | noiob <8197071+noiob@users.noreply.github.com> | 2019-11-21 11:35:39 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-11-21 11:35:39 +0100 |
commit | 5bc4edd0784ed26ada36405ec2ba78a972822983 (patch) | |
tree | a06b9814c1288936f5989ffc6b74b4164334f19a /app | |
parent | 5605b828e5149bd3a5161eb8d536ad51094afe64 (diff) |
Fix whitelist federation for subdomains (#12435)
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/domain_control_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/domain_control_helper.rb b/app/helpers/domain_control_helper.rb index 067b2c2cd..ac60cad29 100644 --- a/app/helpers/domain_control_helper.rb +++ b/app/helpers/domain_control_helper.rb @@ -6,7 +6,7 @@ module DomainControlHelper 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 |