From a29d4fd9d36f4c8074f3e1c6dfde624cb18a8763 Mon Sep 17 00:00:00 2001 From: francis Date: Wed, 9 Jul 2008 14:12:56 +0000 Subject: Don't modify the string - copy it before modifying, or else main email config gets damaged. --- app/controllers/help_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/help_controller.rb') 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 -- cgit v1.2.3