diff options
author | Sam Helman <sam.helman@10gen.com> | 2014-10-09 14:23:06 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2014-10-10 09:20:27 -0400 |
commit | b585cefc1450e773fb8e3134685a63793ccae4be (patch) | |
tree | 51b4eb886538ee90d43b0251ffcd7319b5f1576c /src/mongo/shell/shell_utils_launcher.cpp | |
parent | a91d9aa82a29fea32c89cf15713bd6bc5a51fe19 (diff) | |
download | mongo-b585cefc1450e773fb8e3134685a63793ccae4be.tar.gz |
SERVER-15517 use slashes rather than double quotes for escaping in shell launcher
Closes #823
Signed-off-by: Benety Goh <benety@mongodb.com>
Diffstat (limited to 'src/mongo/shell/shell_utils_launcher.cpp')
-rw-r--r-- | src/mongo/shell/shell_utils_launcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/shell_utils_launcher.cpp b/src/mongo/shell/shell_utils_launcher.cpp index 78e24fa2699..3ea1c949356 100644 --- a/src/mongo/shell/shell_utils_launcher.cpp +++ b/src/mongo/shell/shell_utils_launcher.cpp @@ -375,7 +375,7 @@ namespace mongo { ss << '"'; // escape all embedded quotes for (size_t j=0; j<_argv[i].size(); ++j) { - if (_argv[i][j]=='"') ss << '"'; + if (_argv[i][j]=='"') ss << '\\'; ss << _argv[i][j]; } ss << '"'; |