aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-08-31 12:46:15 +0000
committerfrancis <francis>2008-08-31 12:46:15 +0000
commit3ae712f87ee56cdeb1cc71f2df06a835124014a4 (patch)
treea9bdac4419a7bdfdf104e4e0e818e44247d47d2f /app/controllers/request_controller.rb
parent30dafe463a868c9f879df359b8ce86a780bcbe3d (diff)
Remove all email addresses from Word docs, not just ones we know about.
e.g. for http://www.whatdotheyknow.com/request/communications_about_whatdotheyk
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 cf0ce153b..017e08c5d 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.99 2008-08-29 12:58:08 francis Exp $
+# $Id: request_controller.rb,v 1.100 2008-08-31 12:46:15 francis Exp $
class RequestController < ApplicationController
@@ -333,7 +333,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_special_emails(@attachment.body)
+ @attachment.body = IncomingMessage.binary_mask_all_emails(@attachment.body)
response.content_type = 'application/octet-stream'
if !@attachment.content_type.nil?