Be more cautious about invalid content-type headers
authorGaudenz Steinlin <gaudenz@soziologie.ch>
Thu, 17 Feb 2011 14:36:27 +0000 (15:36 +0100)
committerHamish Downer <dmishd@gmail.com>
Sun, 19 Jun 2011 21:53:46 +0000 (22:53 +0100)
commit142f3888a478376de068d5b5bf5ccdbf710e7c87
tree9149c8ca72e703232fbe017621a9075a1b5e02bb
parent003a28032593275a04fa07a65d4438ff221dd6b2
Be more cautious about invalid content-type headers

The original RMail code calls value.strip.split(/\s*;\s*/)[0].downcase
without checking if split returned an element. This monkey patches the
relevant function for sup to catch this error.

Signed-off-by: Hamish Downer <dmishd@gmail.com>
lib/sup/util.rb