Patch #17718 » 0001-Allow-unicode-whitespace-after-mail-handler-body-del_r16545.patch
| app/models/mail_handler.rb | ||
|---|---|---|
| 578 | 578 |
end |
| 579 | 579 | |
| 580 | 580 |
unless delimiters.empty? |
| 581 |
regex = Regexp.new("^[> ]*(#{ Regexp.union(delimiters) })\s*[\r\n].*", Regexp::MULTILINE)
|
|
| 581 |
regex = Regexp.new("^[> ]*(#{ Regexp.union(delimiters) })[[:blank:]]*[\r\n].*", Regexp::MULTILINE)
|
|
| 582 | 582 |
body = body.gsub(regex, '') |
| 583 | 583 |
end |
| 584 | 584 |
body.strip |
- « Previous
- 1
- 2
- 3
- Next »