From fac5d6a057a806ef19b7b7803104b67ee21e0893 Mon Sep 17 00:00:00 2001 From: Thomas Lauf Date: Fri, 11 May 2018 18:17:13 +0200 Subject: [PATCH] #138 Escape '"' in tags for JSON output --- src/Interval.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Interval.cpp b/src/Interval.cpp index 25aacf64..332ce7d5 100644 --- a/src/Interval.cpp +++ b/src/Interval.cpp @@ -160,7 +160,7 @@ std::string Interval::json () const if (tags[0]) tags += ','; - tags += "\"" + tag + "\""; + tags += "\"" + escape (tag, '"') + "\""; } if (range.start.toEpoch () ||