mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue