2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: make frozen string mutable in incoming_domain

This commit is contained in:
Maja Komel 2019-05-14 16:52:56 +02:00
parent 33bd47164f
commit e0fe01925e

View file

@ -23,7 +23,7 @@ class IncomingDomain < ActiveRecord::Base
end
def to_url
url = "http#{https ? "s" : ""}://#{name}"
url = +"http#{https ? "s" : ""}://#{name}"
if https && port != 443 || !https && port != 80
url << ":#{port}"