#138 Escape '"' in tags for JSON output

This commit is contained in:
Thomas Lauf 2018-05-11 18:17:13 +02:00 committed by lauft
parent 2c5812f7a3
commit fac5d6a057

View file

@ -160,7 +160,7 @@ std::string Interval::json () const
if (tags[0]) if (tags[0])
tags += ','; tags += ',';
tags += "\"" + tag + "\""; tags += "\"" + escape (tag, '"') + "\"";
} }
if (range.start.toEpoch () || if (range.start.toEpoch () ||