1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-22 03:22:05 +00:00

LF line terminators cause misparse of a multi-part email when rdm-mailhandler.rb is invoked from /etc/aliases (#31549).

Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18317 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2019-06-25 23:38:28 +00:00
parent b72fd8b19e
commit 6b2fe85b74

View File

@ -153,7 +153,7 @@ END_DESC
headers = { 'User-Agent' => "Redmine mail handler/#{VERSION}" }
data = { 'key' => key, 'email' => email,
data = { 'key' => key, 'email' => email.gsub(/(?<!\r)\n|\r(?!\n)/, "\r\n"),
'allow_override' => allow_override,
'unknown_user' => unknown_user,
'default_group' => default_group,