aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorfrancis <francis>2009-09-15 17:45:50 +0000
committerfrancis <francis>2009-09-15 17:45:50 +0000
commit3e63196fe2268c1ea4618a261bb18b76a81bacf6 (patch)
tree0603719fe50cb8db2bc38352d41da199ea0b595b /app/controllers
parent64552606573d812452b77e868137de183f0cf2d6 (diff)
Change censor rules to apply to strings in place, so using less memory on large strings.
Add lots of test code for censor rules.
Diffstat (limited to 'app/controllers')
-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 b31b4fbae..89b9c05d8 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.181 2009-09-14 13:16:18 francis Exp $
+# $Id: request_controller.rb,v 1.182 2009-09-15 17:45:50 francis Exp $
class RequestController < ApplicationController
@@ -537,7 +537,7 @@ class RequestController < ApplicationController
# Prevent spam to magic request address. Note that the binary
# subsitution method used depends on the content type
- @attachment.body = @incoming_message.binary_mask_stuff(@attachment.body, @attachment.content_type)
+ @incoming_message.binary_mask_stuff!(@attachment.body, @attachment.content_type)
# we don't use @attachment.content_type here, as we want same mime type when cached in cache_attachments above
response.content_type = filename_to_mimetype(params[:file_name].join("/")) or 'application/octet-stream'