diff options
-rw-r--r-- | app/models/incoming_message.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index f098660bb..375f1d9e7 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -18,7 +18,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.58 2008-03-13 11:29:47 francis Exp $ +# $Id: incoming_message.rb,v 1.59 2008-03-14 19:44:17 francis Exp $ # TODO @@ -245,6 +245,10 @@ class IncomingMessage < ActiveRecord::Base end end + # Fix DOS style linefeeds to Unix style ones (or other later regexps won't work) + # Needed for e.g. http://www.whatdotheyknow.com/request/60/response/98 + text = text.gsub!(/\r\n/, "\n") + return text end # Returns part which contains main body text |