From b83af363effc2333ae2f65753e9347d9428235b8 Mon Sep 17 00:00:00 2001 From: Noah Hilverling Date: Wed, 17 Jan 2018 10:25:42 +0100 Subject: [PATCH] Add missing string escaping to InfluxDB-Writer fixes #5987 --- lib/perfdata/influxdbwriter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/perfdata/influxdbwriter.cpp b/lib/perfdata/influxdbwriter.cpp index 08f126a80..a16536474 100644 --- a/lib/perfdata/influxdbwriter.cpp +++ b/lib/perfdata/influxdbwriter.cpp @@ -321,6 +321,9 @@ String InfluxdbWriter::EscapeValue(const Value& value) if (value.IsBoolean()) return value ? "true" : "false"; + if (value.IsString()) + return "\"" + EscapeKeyOrTagValue(value) + "\""; + return value; } -- 2.40.0