diff options
author | francis <francis> | 2008-11-10 18:25:12 +0000 |
---|---|---|
committer | francis <francis> | 2008-11-10 18:25:12 +0000 |
commit | e9790ccecf2a58b6273ccd6ec621e09cc3a00516 (patch) | |
tree | 4ecece6bb7ce1025d20475c97098f57c9f4fa579 | |
parent | 405cd94fb7995e307cb74aa1b75055a95155a7c6 (diff) |
Realised this is more of a hack than I thought :)
-rw-r--r-- | app/models/incoming_message.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 7fc8a640d..de45415d3 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -19,7 +19,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: incoming_message.rb,v 1.167 2008-11-10 18:18:30 francis Exp $ +# $Id: incoming_message.rb,v 1.168 2008-11-10 18:25:12 francis Exp $ # TODO # Move some of the (e.g. quoting) functions here into rblib, as they feel @@ -609,6 +609,8 @@ class IncomingMessage < ActiveRecord::Base text_charset = main_part.charset if main_part.content_type == 'text/html' # e.g. http://www.whatdotheyknow.com/request/35/response/177 + # XXX This is a bit of a hack as it is calling a convert to text routine. + # Could instead call a sanitize HTML one. text = IncomingMessage.get_attachment_text_internal_one_file(main_part.content_type, text) end end |