summaryrefslogtreecommitdiffstats
path: root/app/controllers/settings_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-09 17:18:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-09 17:18:41 +0000
commit27e3b31c1ef509506046f356b11877d064afea2d (patch)
tree2cae946138fa9d2012808703a0d7c19109bb56e1 /app/controllers/settings_controller.rb
parentfc6d6b1e3b27ae2343eaebbdb61315dc7184b8bd (diff)
downloadredmine-27e3b31c1ef509506046f356b11877d064afea2d.tar.gz
redmine-27e3b31c1ef509506046f356b11877d064afea2d.zip
Fixed: TypeError (can't modify frozen string) on settings view (#2700).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2423 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/settings_controller.rb')
-rw-r--r--app/controllers/settings_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb
index e9bc0a601..7d99a7266 100644
--- a/app/controllers/settings_controller.rb
+++ b/app/controllers/settings_controller.rb
@@ -40,7 +40,7 @@ class SettingsController < ApplicationController
@options[:user_format] = User::USER_FORMATS.keys.collect {|f| [User.current.name(f), f.to_s] }
@deliveries = ActionMailer::Base.perform_deliveries
- @guessed_host_and_path = request.host_with_port
+ @guessed_host_and_path = request.host_with_port.dup
@guessed_host_and_path << ('/'+ Redmine::Utils.relative_url_root.gsub(%r{^\/}, '')) unless Redmine::Utils.relative_url_root.blank?
end