fix(profile-store): refresh native Unix body filenames

This commit is contained in:
Tunglies
2026-12-04 01:48:32 +08:00
parent 1172ff24ff
commit 59762520cc
3 changed files with 11 additions and 5 deletions
+2 -1
View File
@@ -159,7 +159,8 @@ async fn commit_recoverable_refresh(
})?;
let item = candidate.get_item(&uid)?;
if let Some(file) = item.file.as_deref()
&& !file.contains(['/', '\\', ':', '\0'])
&& !file.contains(['/', '\\', '\0'])
&& (!cfg!(windows) || !file.contains(':'))
&& !matches!(file, "" | "." | "..")
{
let path = root.join("profiles").join(file);