[Tickets #12535] Wrong line unfolding for VCALENDAR 1.0

noreply at bugs.horde.org noreply at bugs.horde.org
Mon Aug 5 14:10:17 UTC 2013


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

Ticket URL: http://bugs.horde.org/ticket/12535
------------------------------------------------------------------------------
  Ticket             | 12535
  Created By         | stefan at baer.rwth-aachen.de
  Summary            | Wrong line unfolding for VCALENDAR 1.0
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


stefan at baer.rwth-aachen.de (2013-08-05 14:10) wrote:

Unfolding folded lines is done via
$vCal = preg_replace('/[\r\n]+[ \t]/', '', $vCal);

This is the correct behavior for VCALENDAR 2.0. It is however not  
correct for VCALENDAR 1.0:

http://www.imc.org/pdi/vcal-10.rtf

"Unfolding is accomplished by regarding CRLF immediately followed by a  
LWSP-char as equivalent to the LWSP-char."

So the \r\n_ (_ meaning whitespace) must be replaced by _ and not with  
nothing for vcal1.0.

A patch is provided as attachment.

It is possible that exporting vcal1.0 uses the same false assumption.  
I didn't check this.



stefan at baer.rwth-aachen.de (2013-08-05 14:10) uploaded: vcalendar.patch

http://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=vcalendar.patch&ticket=12535&fn=%2Fvcalendar.patch





More information about the bugs mailing list