From c6add53152ccd620cd7cea5ad75d5f4ec6027212 Mon Sep 17 00:00:00 2001 From: Simon Murray Date: Mon, 27 Jun 2016 10:38:07 +0100 Subject: [PATCH] Fix InfluxDB Writer Key Escaping The escaping wasn't being performed on measuerments, keys or tag values. The escape function was returning the input and not the modified ouput, so this has been fixed refs #12047 Signed-off-by: Michael Friedrich --- lib/perfdata/influxdbwriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/perfdata/influxdbwriter.cpp b/lib/perfdata/influxdbwriter.cpp index 1fdeca17e..92091aafb 100644 --- a/lib/perfdata/influxdbwriter.cpp +++ b/lib/perfdata/influxdbwriter.cpp @@ -237,7 +237,7 @@ String InfluxdbWriter::EscapeKey(const String& str) String result = str; boost::algorithm::replace_all(result, ",", "\\,"); boost::algorithm::replace_all(result, " ", "\\ "); - return str; + return result; } String InfluxdbWriter::EscapeField(const String& str)