mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 14:26:30 +03:00
handle the database
This commit is contained in:
@@ -242,7 +242,8 @@ impl<'a> BlobObject<'a> {
|
||||
/// including the dot. E.g. "foo.txt" is returned as `("foo",
|
||||
/// ".txt")` while "bar" is returned as `("bar", "")`.
|
||||
///
|
||||
/// The extension part will always be lowercased.
|
||||
/// The extension part will always be lowercased. Note that [`imex::transfer`] relies
|
||||
/// on this for safety, if uppercase extensions are ever allowed it needs to be adapted.
|
||||
fn sanitise_name(name: &str) -> (String, String) {
|
||||
let mut name = name.to_string();
|
||||
for part in name.rsplit('/') {
|
||||
|
||||
Reference in New Issue
Block a user