From 3ae712f87ee56cdeb1cc71f2df06a835124014a4 Mon Sep 17 00:00:00 2001 From: francis Date: Sun, 31 Aug 2008 12:46:15 +0000 Subject: Remove all email addresses from Word docs, not just ones we know about. e.g. for http://www.whatdotheyknow.com/request/communications_about_whatdotheyk --- app/controllers/request_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/request_controller.rb') 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? -- cgit v1.2.3