Subject: | Parsing content_type |
In line 57 wrong Regex to parse charset.
57 if ($ct_enc && $ct_enc =~ /charset=(.*?)$/) {
This regexp is not working on the content_type like 'text/csv; charset=iso-8859-1;
header=present'.
The correct regex should be: /charset=([^;]*?)/