From: Simon Murray Date: Mon, 27 Jun 2016 09:38:07 +0000 (+0100) Subject: Fix InfluxDB Writer Key Escaping X-Git-Tag: v2.5.0~218 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6add53152ccd620cd7cea5ad75d5f4ec6027212;p=icinga2 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 --- 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)