mirror of https://github.com/Icinga/icinga2.git
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:
parent
513da927f1
commit
c6add53152
|
@ -237,7 +237,7 @@ String InfluxdbWriter::EscapeKey(const String& str)
|
||||||
String result = str;
|
String result = str;
|
||||||
boost::algorithm::replace_all(result, ",", "\\,");
|
boost::algorithm::replace_all(result, ",", "\\,");
|
||||||
boost::algorithm::replace_all(result, " ", "\\ ");
|
boost::algorithm::replace_all(result, " ", "\\ ");
|
||||||
return str;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
String InfluxdbWriter::EscapeField(const String& str)
|
String InfluxdbWriter::EscapeField(const String& str)
|
||||||
|
|
Loading…
Reference in New Issue