aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-07-10 08:26:08 +0000
committerfrancis <francis>2008-07-10 08:26:08 +0000
commitea34d22c22c8b723d2d684dd6e8ad7883a1a028a (patch)
tree97ffcfdbe06378a4bf4e3654ffffe6299f271bcf
parent6ba29bab45b311c60aa650275c333638313dac7d (diff)
Should strip here too.
-rw-r--r--app/models/outgoing_message.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/outgoing_message.rb b/app/models/outgoing_message.rb
index 482c5c0fe..6cc8b2368 100644
--- a/app/models/outgoing_message.rb
+++ b/app/models/outgoing_message.rb
@@ -21,7 +21,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: outgoing_message.rb,v 1.53 2008-07-10 08:24:30 francis Exp $
+# $Id: outgoing_message.rb,v 1.54 2008-07-10 08:26:08 francis Exp $
class OutgoingMessage < ActiveRecord::Base
belongs_to :info_request
@@ -159,6 +159,7 @@ class OutgoingMessage < ActiveRecord::Base
# XXX this is repeating code in a combination of
# views/layouts/request_mailer.rhtml and views/request_mailer/initial_request.rhtml
def get_body_for_html_preview
+ text = self.body.strip
text = MySociety::Format.wrap_email_body(self.body.strip)
text = CGI.escapeHTML(text)
text = MySociety::Format.make_clickable(text, :contract => 1)