[BUGFIX] Line endings in ICS must be Windows style 73/37673/2
authorLorenz Ulrich <lorenz.ulrich@visol.ch>
Fri, 19 Sep 2014 08:15:32 +0000 (10:15 +0200)
committerPatrick Wiggelman <patrickwiggelman@roquin.nl>
Fri, 20 Mar 2015 08:46:37 +0000 (09:46 +0100)
commit40aed2025f6c9b4793fe1e5bf6452f1e4004acba
treeec410fcac6a1918175ee0213e89e52c0bf4e3d3e
parent1669900769918a8bc866c7513f8200d2667ea94a
[BUGFIX] Line endings in ICS must be Windows style

According to RFC2445 (iCalendar specification), line endings must be in
Windows style (\r\n). The TrimViewHelper is adapted to replace other
line endings to Windows style for ICS only.

Furthermore, line feeds in the DESCRIPTION (teaser field of news) must
be processed to have a space at the beginning of a new line to make the
feed validate.

Resolves: #61731
Releases: 3.1
Change-Id: I1a4cdee123a5d6074f6c43330f23c7bf18d5ab19
Reviewed-on: http://review.typo3.org/37673
Reviewed-by: Patrick Wiggelman <patrickwiggelman@roquin.nl>
Tested-by: Patrick Wiggelman <patrickwiggelman@roquin.nl>
Classes/ViewHelpers/Format/NewlineToNewlineTagViewHelper.php [new file with mode: 0644]
Classes/ViewHelpers/Format/TrimViewHelper.php
Resources/Private/Partials/Event/Item.ics
Resources/Private/Templates/News/EventDetail.ics
Resources/Private/Templates/News/EventList.ics