commit: 45afdf1781dcd8d9e51fe23fa210dc53bbc72f71
parent: 79b34a0fa2e993967f22892b857dcf601c07bd88
Author: Eugen Rochko <eugen@zeonfederated.com>
Date: Sat, 20 Jan 2018 03:49:06 +0100
Fix #6269 - Render LOCAL_DOMAIN as unicode in presentational views (#6305)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/helpers/instance_helper.rb b/app/helpers/instance_helper.rb
@@ -6,6 +6,6 @@ module InstanceHelper
end
def site_hostname
- Rails.configuration.x.local_domain
+ @site_hostname ||= Addressable::URI.parse("//#{Rails.configuration.x.local_domain}").display_uri.host
end
end