From 6fcddd42abe7ff025f1eaecbeda17a35efcd6b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Fri, 9 Dec 2016 15:23:40 +0100 Subject: [PATCH] Clean temporary RackMultiPart* files using middleware --- config/application.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/application.rb b/config/application.rb index 41a641d70f..e645003038 100644 --- a/config/application.rb +++ b/config/application.rb @@ -106,6 +106,9 @@ module OpenProject } config.middleware.use Rack::Attack + # Ensure that tempfiles are cleared after request + # http://stackoverflow.com/questions/4590229 + config.middleware.use Rack::TempfileReaper config.middleware.use ::ResetCurrentUser # Custom directories with classes and modules you want to be autoloadable.