Skip to content

Commit 59fa91d

Browse files
committed
Use a valid Content-Disposition in mime_decoding test
The old value had no disposition type, so 'key="plain"' was parsed as the leading value, which MIME-tools 5.521 truncates to 'key='.
1 parent 861a43f commit 59fa91d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎t/mail/mime_decoding.t‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ diag q{'=' char in a leading part before an encoded part};
1616
"right decoding"
1717
);
1818
} [qr/DecodeMIMEWordsTo.*?called without field name/i];
19+
20+
$str = 'attachment; key1="plain"; key2="=?UTF-8?B?0LzQvtC5X9GE0LDQudC7LmJpbg==?="';
1921
is(
2022
RT::I18N::DecodeMIMEWordsToUTF8($str, 'content-disposition'),
21-
'key="plain"; key="мой_файл.bin"',
23+
'attachment; key1="plain"; key2="мой_файл.bin"',
2224
"right decoding"
2325
);
2426
}

0 commit comments

Comments
 (0)