Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/inside
diff options
context:
space:
mode:
authorDmitry Lomanov <dvlom@mail.ru>2020-01-28 23:24:42 +0300
committerDmitry Lomanov <dvlom@mail.ru>2020-01-28 23:24:42 +0300
commit131a1f187a5ad67a418b815fb07586dcf6fa7f3f (patch)
tree7e6e84f3628d6c8917ca18cb972dee230e17bcc5 /inside
parent2cae4a20b3da800b56415b873af5a66a4262d078 (diff)
directories and filenames with special signs (dollar, back quote) in multiarc and command shell
Diffstat (limited to 'inside')
-rw-r--r--inside/src/Commands.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/inside/src/Commands.cpp b/inside/src/Commands.cpp
index 9bc82f2c..de1e6379 100644
--- a/inside/src/Commands.cpp
+++ b/inside/src/Commands.cpp
@@ -34,7 +34,7 @@ namespace Commands
size_t p = expanded_cmd.find("$F");
if (p != std::string::npos) {
std::string quoted("\"");
- quoted+= EscapeQuotas(name);
+ quoted+= EscapeCmdStr(name);
quoted+= "\"";
expanded_cmd.replace(p, 2, quoted);
}
@@ -42,7 +42,7 @@ namespace Commands
p = expanded_cmd.find("$T");
if (p != std::string::npos) {
std::string quoted("\"");
- quoted+= EscapeQuotas(result_file);
+ quoted+= EscapeCmdStr(result_file);
quoted+= "\"";
expanded_cmd.replace(p, 2, quoted);