mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-12-04 21:30:06 +08:00
fix(profile-store): refresh native Unix body filenames
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user