out_influxdb: add escape for backslash
@@ -34,7 +34,7 @@ static int influxdb_escape(char *out, const char *str, int size, bool quote) {
int i;
for (i = 0; i < size; ++i) {
char ch = str[i];
- if (quote ? (ch == '"') : (isspace(ch) || ch == ',' || ch == '=')) {
+ if (quote ? (ch == '"' || ch == '\\') : (isspace(ch) || ch == ',' || ch == '=')) {
out[out_size++] = '\\';
} else if (ch == '\\') {
out[out_size++] = '\\';
