FIX: frozen string exception (#7506)
Initial backtrace: ``` /var/www/discourse/app/models/incoming_domain.rb:29:in `to_url' /var/www/discourse/app/models/incoming_link.rb:83:in `referer' /var/www/discourse/app/models/incoming_link.rb:106:in `referer_valid' ```
This commit is contained in:
parent
b409dab77f
commit
c4b7fb2754
|
@ -24,7 +24,7 @@ class IncomingDomain < ActiveRecord::Base
|
||||||
url = "http#{https ? "s" : ""}://#{name}"
|
url = "http#{https ? "s" : ""}://#{name}"
|
||||||
|
|
||||||
if https && port != 443 || !https && port != 80
|
if https && port != 443 || !https && port != 80
|
||||||
url << ":#{port}"
|
url += ":#{port}"
|
||||||
end
|
end
|
||||||
|
|
||||||
url
|
url
|
||||||
|
|
Loading…
Reference in New Issue