From 6dba6a0bfb9cb8b7ad450fd64f68dd30bbb905f2 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 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 499e77a89..ac149e7cb 100644 --- a/lib/perfdata/influxdbwriter.cpp +++ b/lib/perfdata/influxdbwriter.cpp @@ -323,6 +323,9 @@ String InfluxdbWriter::EscapeValue(const Value& value) if (value.IsBoolean()) return value ? "true" : "false"; + if (value.IsString()) + return "\"" + EscapeKeyOrTagValue(value) + "\""; + return value; }