mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 15:06:30 +03:00
another pace where we might (and in my case did) get invalid utf8
This commit is contained in:
@@ -225,7 +225,8 @@ unsafe fn dc_simplify_simplify_plain_text(
|
||||
pending_linebreaks -= 1
|
||||
}
|
||||
}
|
||||
ret += &to_string(line);
|
||||
// the incoming message might contain invalid UTF8
|
||||
ret += &to_string_lossy(line);
|
||||
content_lines_added += 1;
|
||||
pending_linebreaks = 1i32
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user