Project

General

Profile

Patch #17718 » 0001-Allow-unicode-whitespace-after-mail-handler-body-del_r16545.patch

Marius BĂLTEANU, 2017-05-07 21:45

View differences:

app/models/mail_handler.rb
end
unless delimiters.empty?
regex = Regexp.new("^[> ]*(#{ Regexp.union(delimiters) })\s*[\r\n].*", Regexp::MULTILINE)
regex = Regexp.new("^[> ]*(#{ Regexp.union(delimiters) })[[:blank:]]*[\r\n].*", Regexp::MULTILINE)
body = body.gsub(regex, '')
end
body.strip
(3-3/3)