aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-12-04 20:03:46 +0000
committerfrancis <francis>2008-12-04 20:03:46 +0000
commit7a9330396c041a877f024de560d9feffbb5fb407 (patch)
treebb7449fbf40de3fe9ff2c43aa3e5335d6ce02487 /app/controllers/request_controller.rb
parent270a22d3606c09af2dbcc26fe41982b11a94cb19 (diff)
Don't strip emails etc. from PDFs, won't work.
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r--app/controllers/request_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index 7b6f77337..b98db6622 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -4,7 +4,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: request_controller.rb,v 1.142 2008-11-17 18:34:40 francis Exp $
+# $Id: request_controller.rb,v 1.143 2008-12-04 20:03:46 francis Exp $
class RequestController < ApplicationController
@@ -478,7 +478,7 @@ class RequestController < ApplicationController
# Prevent spam to magic request address.
# XXX Bit dodgy modifying a binary like this but hey. Maybe only do for some mime types?
- @attachment.body = @incoming_message.binary_mask_stuff(@attachment.body)
+ @attachment.body = @incoming_message.binary_mask_stuff(@attachment.body, @attachment.content_type)
@attachment_url = get_attachment_url(:id => @incoming_message.info_request_id,
:incoming_message_id => @incoming_message.id, :part => @part_number,