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
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
(3-3/3)