diff options
author | Go MAEDA <maeda@farend.jp> | 2019-09-26 13:01:01 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-09-26 13:01:01 +0000 |
commit | 50becaf5eed5e26c8c4019f2d2adb9e1d7ee2043 (patch) | |
tree | 0599831361ed28b8f72d10d576c9719b8b4cc926 /extra | |
parent | e368e7619b588e7ab7ab332fc11681ddfeb5d974 (diff) | |
download | redmine-50becaf5eed5e26c8c4019f2d2adb9e1d7ee2043.tar.gz redmine-50becaf5eed5e26c8c4019f2d2adb9e1d7ee2043.zip |
Incoming emails may cause "invalid byte sequence" error depending on the default external encoding, due to r18317 (#31549).
git-svn-id: http://svn.redmine.org/redmine/trunk@18544 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra')
-rw-r--r-- | extra/mail_handler/rdm-mailhandler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/mail_handler/rdm-mailhandler.rb b/extra/mail_handler/rdm-mailhandler.rb index b7284841d..c3d2e032a 100644 --- a/extra/mail_handler/rdm-mailhandler.rb +++ b/extra/mail_handler/rdm-mailhandler.rb @@ -212,4 +212,4 @@ END_DESC end handler = RedmineMailHandler.new -exit(handler.submit(STDIN.read)) +exit(handler.submit(STDIN.read.force_encoding('ASCII-8BIT'))) |