mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
Fix command line string
This commit is contained in:
parent
553f6f6ba9
commit
50aa0eb1d3
@ -72,6 +72,7 @@ String RedisWriter::FormatCommandLine(const Value& commandLine)
|
|||||||
} else if (!commandLine.IsEmpty()) {
|
} else if (!commandLine.IsEmpty()) {
|
||||||
result = commandLine;
|
result = commandLine;
|
||||||
boost::algorithm::replace_all(result, "\'", "\\'");
|
boost::algorithm::replace_all(result, "\'", "\\'");
|
||||||
|
result = "'" + result + "'";
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user