]> granicus.if.org Git - icinga2/commitdiff
Add missing string escaping to InfluxDB-Writer 5995/head
authorNoah Hilverling <noah.hilverling@icinga.com>
Wed, 17 Jan 2018 09:25:42 +0000 (10:25 +0100)
committerNoah Hilverling <noah.hilverling@icinga.com>
Wed, 17 Jan 2018 09:26:09 +0000 (10:26 +0100)
fixes #5987

lib/perfdata/influxdbwriter.cpp

index 08f126a80ba7f9d0fead42ebff4c42393b42e10b..a165364743870c54d926db2a29234e904c3a426e 100644 (file)
@@ -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;
 }