Fix whitelist federation for subdomains (#12435)
This commit is contained in:
		
							parent
							
								
									5605b828e5
								
							
						
					
					
						commit
						5bc4edd078
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -6,7 +6,7 @@ module DomainControlHelper
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    domain = begin
 | 
					    domain = begin
 | 
				
			||||||
      if uri_or_domain.include?('://')
 | 
					      if uri_or_domain.include?('://')
 | 
				
			||||||
        Addressable::URI.parse(uri_or_domain).domain
 | 
					        Addressable::URI.parse(uri_or_domain).host
 | 
				
			||||||
      else
 | 
					      else
 | 
				
			||||||
        uri_or_domain
 | 
					        uri_or_domain
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue