Escaping DQUOTE in text section (VJOURNAL/description)

Bug #1447874 reported by Worik
6
This bug affects 1 person
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-20150415T224001Z0-1000@sharron
CLASS:PUBLIC
DTSTAMP:20150415T224006Z
CREATED:20150415T224001Z
LAST-MODIFIED:20150415T224006Z
SUMMARY:A Journal Entry Orage
DESCRIPTION:All day\nCategory \"Foobar\"\n
CATEGORIES:Foobar
DTSTART;VALUE=DATE:20150416
END:VJOURNAL

Note the escaped DQUOTE characters in the description field. It should be:

DESCRIPTION:All day\nCategory "Foobar"\n

Revision history for this message
Worik (worik-stanton) wrote :
Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

Fixed in libical.

Version 1.0.1:
--------------
* [Bug] issue74: Do not escape double quote character
* ...

https://github.com/libical/libical/blob/master/ReleaseNotes.txt

affects: orage (Ubuntu) → libical (Ubuntu)
Changed in libical (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.