mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-28 07:37:32 +00:00
fix(userspace/falco): solve escape issues in grpc output
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
parent
00acd17ba1
commit
75720534d7
@ -85,7 +85,9 @@ void falco::outputs::output_grpc::output(const message *msg)
|
|||||||
{
|
{
|
||||||
throw falco_exception("output_grpc: output fields must be key-value maps");
|
throw falco_exception("output_grpc: output fields must be key-value maps");
|
||||||
}
|
}
|
||||||
fields[kv.key()] = kv.value().dump();
|
fields[kv.key()] = (kv.value().is_string())
|
||||||
|
? kv.value().get<std::string>()
|
||||||
|
: kv.value().dump();
|
||||||
}
|
}
|
||||||
|
|
||||||
// hostname
|
// hostname
|
||||||
|
Loading…
Reference in New Issue
Block a user