mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-23 08:51: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:
parent
e978d480cd
commit
c9640667d1
@ -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
|
||||
|
||||
@ -26,7 +26,7 @@ END_DESC
|
||||
|
||||
task :read => :environment 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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user