diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-09-23 13:36:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-09-23 13:36:30 +0000 |
commit | c9640667d13cb8f37a94858acac68c0e6174107d (patch) | |
tree | 640eaf01f622ae28268aa716be70330a4b0ee558 /app | |
parent | e978d480cd2fe774d9e34c266b6e09ad93291d39 (diff) | |
download | redmine-c9640667d13cb8f37a94858acac68c0e6174107d.tar.gz redmine-c9640667d13cb8f37a94858acac68c0e6174107d.zip |
redmine:email:read and rdm-mailhandler.rb should use safe_receive instead of receive (#29614).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17508 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/mail_handler_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/mail_handler_controller.rb b/app/controllers/mail_handler_controller.rb index ccb832e7a..1942ab1b7 100644 --- a/app/controllers/mail_handler_controller.rb +++ b/app/controllers/mail_handler_controller.rb @@ -26,7 +26,7 @@ class MailHandlerController < ActionController::Base def index options = params.dup email = options.delete(:email) - if MailHandler.receive(email, options) + if MailHandler.safe_receive(email, options) head :created else head :unprocessable_entity |