MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ShellEscape

Function ShellEscape

src/common/system.cpp:41–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40#ifndef WIN32
41std::string ShellEscape(const std::string& arg)
42{
43 std::string escaped = arg;
44 ReplaceAll(escaped, "'", "'\"'\"'");
45 return "'" + escaped + "'";
46}
47#endif
48
49#if HAVE_SYSTEM

Callers 2

AddToWalletMethod · 0.85
FUZZ_TARGETFunction · 0.85

Calls 1

ReplaceAllFunction · 0.85

Tested by 1

FUZZ_TARGETFunction · 0.68