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 <michael.friedrich@netways.de>
This commit is contained in:
Simon Murray 2016-06-27 10:38:07 +01:00 committed by Michael Friedrich
parent 513da927f1
commit c6add53152
1 changed files with 1 additions and 1 deletions

View File

@ -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)