1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-23 17:01:13 +00:00

redmine📧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
This commit is contained in:
Jean-Philippe Lang 2018-09-23 13:36:30 +00:00
parent e978d480cd
commit c9640667d1
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class MailHandlerController < ActionController::Base
def index def index
options = params.dup options = params.dup
email = options.delete(:email) email = options.delete(:email)
if MailHandler.receive(email, options) if MailHandler.safe_receive(email, options)
head :created head :created
else else
head :unprocessable_entity head :unprocessable_entity

View File

@ -26,7 +26,7 @@ END_DESC
task :read => :environment do task :read => :environment do
Mailer.with_synched_deliveries do Mailer.with_synched_deliveries do
MailHandler.receive(STDIN.read, MailHandler.extract_options_from_env(ENV)) MailHandler.safe_receive(STDIN.read, MailHandler.extract_options_from_env(ENV))
end end
end end