Escaping DQUOTE in text section (VJOURNAL/description)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libical (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When a journal entry is created and a string is added with DQUOTE characters in it the RFC5545 says in 3.8.1.5 that the description syntax is:
description = "DESCRIPTION" descparam ":" text CRLF
'text' is described in 3.3.11 as:
text = *(TSAFE-CHAR / ":" / DQUOTE / ESCAPED-CHAR)
That is DQUOTE is not escaped.
But when I create a journal entry (see screenshot) with DQUOTE in it the iCalendar file created by Orage (using File->Exchange Data->export) has the following....
BEGIN:VJOURNAL
UID:Orage-
CLASS:PUBLIC
DTSTAMP:
CREATED:
LAST-MODIFIED:
SUMMARY:A Journal Entry Orage
DESCRIPTION:All day\nCategory \"Foobar\"\n
CATEGORIES:Foobar
DTSTART;
END:VJOURNAL
Note the escaped DQUOTE characters in the description field. It should be:
DESCRIPTION:All day\nCategory "Foobar"\n
Fixed in libical.
Version 1.0.1:
--------------
* [Bug] issue74: Do not escape double quote character
* ...
https:/ /github. com/libical/ libical/ blob/master/ ReleaseNotes. txt