We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a5d549 commit a94a175Copy full SHA for a94a175
lib/mime_message_viewer.dart
@@ -210,11 +210,7 @@ class _HtmlViewerState extends State<MimeMessageViewer> {
210
}
211
if (requestUri.isScheme('cid')) {
212
// show inline part:
213
- var cid = requestUri.path;
214
- if ((cid.startsWith('%3C') && cid.endsWith('%3E')) ||
215
- (cid.startsWith('%3c') && cid.endsWith('%3e'))) {
216
- cid = '<${cid.substring('%3C'.length, cid.length - '%3E'.length)}>';
217
- }
+ var cid = Uri.decodeComponent(requestUri.host);
218
final part = widget.mimeMessage.getPartWithContentId(cid);
219
if (part != null) {
220
final mediaProvider =
0 commit comments