From 86fc16696e377881205e8d2318c8564230bc8c1c Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Mon, 16 Jun 2025 14:47:38 +0200 Subject: [PATCH] comment --- plugins/updater/src/updater.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/updater/src/updater.rs b/plugins/updater/src/updater.rs index 4cbe6641..707c1489 100644 --- a/plugins/updater/src/updater.rs +++ b/plugins/updater/src/updater.rs @@ -1377,6 +1377,7 @@ fn escape_nsis_current_exe_arg(arg: &&OsStr) -> String { let arg = arg.to_string_lossy(); let mut cmd: Vec = Vec::new(); + // compared to std we additionally escape `/` so that nsis won't interpret them as a beginning of an nsis argument. let quote = arg.chars().any(|c| c == ' ' || c == '\t' || c == '/') || arg.is_empty(); let escape = true; if quote {