mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 02:16:29 +03:00
Revert "Switch to sanitize-filename-reader-friendly"
This reverts commit 93797bc82f.
This commit is contained in:
@@ -320,8 +320,13 @@ impl<'a> BlobObject<'a> {
|
||||
break;
|
||||
}
|
||||
}
|
||||
let opts = sanitize_filename::Options {
|
||||
truncate: true,
|
||||
windows: true,
|
||||
replacement: "",
|
||||
};
|
||||
|
||||
let clean = sanitize_filename_reader_friendly::sanitize(&name);
|
||||
let clean = sanitize_filename::sanitize_with_options(name, opts);
|
||||
let mut iter = clean.splitn(2, '.');
|
||||
let stem: String = iter.next().unwrap_or_default().chars().take(64).collect();
|
||||
let ext: String = iter.next().unwrap_or_default().chars().take(32).collect();
|
||||
|
||||
Reference in New Issue
Block a user