mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
FIX: If the host can't be extracted don't raise an error
This commit is contained in:
parent
1768c45a33
commit
55ca5df96b
@ -1,6 +1,8 @@
|
||||
class IncomingDomain < ActiveRecord::Base
|
||||
def self.add!(uri)
|
||||
name = uri.host
|
||||
return unless name.present?
|
||||
|
||||
https = uri.scheme == "https"
|
||||
port = uri.port
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user