[core] Tests: the mandatory suites, red against the API stubs (55 tests)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
//! Attachment names from mail are hostile: `../../evil.exe`, `CON.txt`, `invoice\u{202E}fdp.exe`.
|
||||
|
||||
/// The longest name kept, in characters (the extension is kept when cutting).
|
||||
pub const MAX_FILENAME_CHARS: usize = 120;
|
||||
|
||||
/// A name that is safe to create in any directory on Windows, Android and iOS, and that shows what it is.
|
||||
pub fn safe_filename(raw: &str) -> String {
|
||||
let _ = raw;
|
||||
todo!()
|
||||
}
|
||||
Reference in New Issue
Block a user