allow CLI to upload files with truncated filenames (#5618)

due to a bug in the CLI the filename in the form-data is not complete if
the encrypted filename happens to contain a /
This commit is contained in:
Stefan Melmuk
2025-02-19 10:40:59 +01:00
committed by GitHub
parent 3baffeee9a
commit 359a4a088a
2 changed files with 9 additions and 1 deletions

View File

@@ -135,6 +135,10 @@ impl Device {
pub fn is_registered(&self) -> bool {
self.push_uuid.is_some()
}
pub fn is_cli(&self) -> bool {
matches!(DeviceType::from_i32(self.atype), DeviceType::WindowsCLI | DeviceType::MacOsCLI | DeviceType::LinuxCLI)
}
}
pub struct DeviceWithAuthRequest {