[Tickets #7031] Colons within quoted parameter values are not handled correctly

bugs at horde.org bugs at horde.org
Sun Jul 6 19:19:55 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7031
------------------------------------------------------------------------------
  Ticket             | 7031
  Created By         | develop at kristov.de
  Summary            | Colons within quoted parameter values are not handled
                     | correctly
  Queue              | Horde Framework Packages
  Version            | FRAMEWORK_3
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
+New Attachment     | horde-3.2.1-icalendar.patch
------------------------------------------------------------------------------


develop at kristov.de (2008-07-06 15:19) wrote:

Suppose an iCalendar file has the entry

ORGANIZER;SENT-BY="mailto
  :a at b.c":mailto:a at b.c

The ':' within the value of the parameter "SENT-BY" is taken as a  
separator between the parameters and the value of the ORGANIZER tag  
which is not correct. As per RFC 2445, we have in 4.1:

param-value        = paramtext / quoted-string
quoted-string      = DQUOTE *QSAFE-CHAR DQUOTE
QSAFE-CHAR = WSP / %x21 / %x23-7E / NON-US-ASCII
      ; Any character except CTLs and DQUOTE

so quoted parameter values can contain colons.

A patch is attached. It changes the regular expression for breaking  
down the line into tag, parameters, and values from

/([^;^:]*)((;[^:]*)?):([^\r\n]*)[\r\n]*/

to

/([^;^:]*)((;[^;^:]*=(([^"^:^;][^:^;^"]*)|("[^"]*")))*):([^\r\n]*)[\r\n]*/






More information about the bugs mailing list