THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

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
pull/116/head
Go MAEDA 2 months ago
parent
commit
6b2fe85b74
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      extra/mail_handler/rdm-mailhandler.rb

+ 1
- 1
extra/mail_handler/rdm-mailhandler.rb 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,

Loading…
Cancel
Save