mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
#138 Escape '"' in tags for JSON output
This commit is contained in:
parent
2c5812f7a3
commit
fac5d6a057
1 changed files with 1 additions and 1 deletions
|
@ -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 () ||
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue