Add missing string escaping

fixes #5987
This commit is contained in:
Noah Hilverling 2018-01-17 10:25:42 +01:00
parent 157358c24f
commit 6dba6a0bfb
1 changed files with 3 additions and 0 deletions

View File

@ -323,6 +323,9 @@ String InfluxdbWriter::EscapeValue(const Value& value)
if (value.IsBoolean())
return value ? "true" : "false";
if (value.IsString())
return "\"" + EscapeKeyOrTagValue(value) + "\"";
return value;
}