Commit 9422095d authored by pveith's avatar pveith
Browse files

Corrected the comparison. Changed == to eq and introduced lc.

parent 83265bae
......@@ -1264,7 +1264,7 @@ sub _merge_msg {
# Check for attchment-part, which should not be changed
my $cdisposition = $entity->head->mime_attr('Content-Disposition');
if ($cdisposition and $cdisposition == 'attachment') {
if ($cdisposition and lc($cdisposition) eq 'attachment') {
$log->syslog('notice', 'Detected part with Content-Disposition. Not changing it!');
return $entity;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment