Patch #17718 » 0001-Allow-unicode-whitespace-after-mail-handler-body-del_r16545.patch
| 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
|
||
- « Previous
- 1
- 2
- 3
- Next »