diff options
author | francis <francis> | 2008-07-09 14:12:56 +0000 |
---|---|---|
committer | francis <francis> | 2008-07-09 14:12:56 +0000 |
commit | a29d4fd9d36f4c8074f3e1c6dfde624cb18a8763 (patch) | |
tree | 16054258c8c1899b581919cddbad2a4bb889c8ec /app/controllers/help_controller.rb | |
parent | 84d3bacaac89d90bc71ac127bc89270a43430b0c (diff) |
Don't modify the string - copy it before modifying, or else main email config gets damaged.
Diffstat (limited to 'app/controllers/help_controller.rb')
-rw-r--r-- | app/controllers/help_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index a1da642b0..15a846e50 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: help_controller.rb,v 1.6 2008-07-09 07:29:54 francis Exp $ +# $Id: help_controller.rb,v 1.7 2008-07-09 14:12:56 francis Exp $ class HelpController < ApplicationController @@ -13,7 +13,7 @@ class HelpController < ApplicationController def contact @contact_email = MySociety::Config.get("CONTACT_EMAIL", 'contact@localhost') - @contact_email.gsub!(/@/, "@") + @contact_email = @contact_email.gsub(/@/, "@") if params[:submitted_contact_form] if @user |