Commit 6b0dbc2a authored by jplang's avatar jplang

redmine:email:read and rdm-mailhandler.rb should use safe_receive instead of receive (#29614).

Patch by Go MAEDA.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 513a8b03
......@@ -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
head :unprocessable_entity
......@@ -26,7 +26,7 @@ END_DESC
task :read => :environment do
Mailer.with_synched_deliveries do
MailHandler.receive(, MailHandler.extract_options_from_env(ENV))
MailHandler.safe_receive(, MailHandler.extract_options_from_env(ENV))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment