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:
Joffrey JAFFEUX 2019-05-08 16:25:54 +02:00 committed by GitHub
parent b409dab77f
commit c4b7fb2754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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