[TYPO3-calendar] Invalid Cal RSS XML when Title contains &

Dr. Christoph Hermann hermann at informatik.uni-freiburg.de
Wed Sep 11 18:23:04 CEST 2013


Hi,

the typo3 cal extension creates an invalid RSS Feed when the title field of 
an event contains an & (ampersand).

This is especially weird since the typoscript contains a htmlspecialchars in 
the event stdWrap.

There is a function getRssFromEvent in the source that is never called that 
seems to adress the problem?
But since it's never called it doesn't work ;-)

In Line 122 i patched the code with a function fixXML that does a regex 
replace, but this is of course not a valid solution to the problem.

$subpartArray['###CONTENT###'] .= $this->fixXML($event-
>renderEventFor('rss'));

i tracked down the event->renderEventFor to the getMarker in 
model/class.tx_cal_base_model.php.

I assume there should be a way to specify a getTitleMarker() function in the 
RSS class to correctly adress this issue.

What would be the correct way to adress this issue?
Can someone comment on this?

regards
Christoph Hermann


More information about the TYPO3-project-calendar mailing list