pull/2761/head
Fabian-Lars 1 month ago committed by GitHub
parent 84bd60cf27
commit 86fc16696e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1377,6 +1377,7 @@ fn escape_nsis_current_exe_arg(arg: &&OsStr) -> String {
let arg = arg.to_string_lossy(); let arg = arg.to_string_lossy();
let mut cmd: Vec<char> = Vec::new(); let mut cmd: Vec<char> = 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 quote = arg.chars().any(|c| c == ' ' || c == '\t' || c == '/') || arg.is_empty();
let escape = true; let escape = true;
if quote { if quote {

Loading…
Cancel
Save