about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authornoiob <8197071+noiob@users.noreply.github.com>2019-11-21 11:35:39 +0100
committermultiple creatures <dev@multiple-creature.party>2020-02-21 01:25:05 -0600
commit855de12844c9367e0754acd8f32bcc42996f419c (patch)
treef779fe4499f3e69299982a78daac55c9705fec7e /app
parent99076be1ba2e583450f78a7a0ec965c3034a3aab (diff)
Fix whitelist federation for subdomains (#12435)
Diffstat (limited to 'app')
-rw-r--r--app/helpers/domain_control_helper.rb2
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