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
This commit is contained in:
Go MAEDA
2019-09-26 13:01:01 +00:00
parent e368e7619b
commit 50becaf5ee

View File

@@ -212,4 +212,4 @@ END_DESC
end
handler = RedmineMailHandler.new
exit(handler.submit(STDIN.read))
exit(handler.submit(STDIN.read.force_encoding('ASCII-8BIT')))