mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
parent
254c076dd4
commit
08ccb4e323
@ -61,7 +61,9 @@ REGISTER_SAFE_SCRIPTFUNCTION(msi_get_component_path, &ScriptUtils::MsiGetCompone
|
|||||||
REGISTER_SAFE_SCRIPTFUNCTION(track_parents, &ScriptUtils::TrackParents);
|
REGISTER_SAFE_SCRIPTFUNCTION(track_parents, &ScriptUtils::TrackParents);
|
||||||
REGISTER_SAFE_SCRIPTFUNCTION(escape_shell_cmd, &Utility::EscapeShellCmd);
|
REGISTER_SAFE_SCRIPTFUNCTION(escape_shell_cmd, &Utility::EscapeShellCmd);
|
||||||
REGISTER_SAFE_SCRIPTFUNCTION(escape_shell_arg, &Utility::EscapeShellArg);
|
REGISTER_SAFE_SCRIPTFUNCTION(escape_shell_arg, &Utility::EscapeShellArg);
|
||||||
|
#ifdef _WIN32
|
||||||
REGISTER_SAFE_SCRIPTFUNCTION(escape_create_process_arg, &Utility::EscapeCreateProcessArg);
|
REGISTER_SAFE_SCRIPTFUNCTION(escape_create_process_arg, &Utility::EscapeCreateProcessArg);
|
||||||
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
String ScriptUtils::CastString(const Value& value)
|
String ScriptUtils::CastString(const Value& value)
|
||||||
{
|
{
|
||||||
|
@ -103,7 +103,9 @@ public:
|
|||||||
|
|
||||||
static String EscapeShellCmd(const String& s);
|
static String EscapeShellCmd(const String& s);
|
||||||
static String EscapeShellArg(const String& s);
|
static String EscapeShellArg(const String& s);
|
||||||
|
#ifdef _WIN32
|
||||||
static String EscapeCreateProcessArg(const String& arg);
|
static String EscapeCreateProcessArg(const String& arg);
|
||||||
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
static String EscapeString(const String& s, const String& chars, const bool illegal);
|
static String EscapeString(const String& s, const String& chars, const bool illegal);
|
||||||
static String UnescapeString(const String& s);
|
static String UnescapeString(const String& s);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user