Issue Bug Closed

#39290indexed_search pi2 (extbase/fluid plugin): Result titles are double-htmlspecialchared

Andreas Kießling 07/26/12, 13:43 updated 10/19/17, 21:37

Description

All links that are generated through Tx_IndexedSearch_Controller_SearchController->linkPage are passed through htmlspecialchars

return '<a href="' . htmlspecialchars($uri) . '"' . $target . '>' . htmlspecialchars($linkText) . '</a>';

But the $linkText is already prepared from the calling methods (because they e.g. generate some links on their own and so need to escape the title).
So the resulting HTML will be like this if there is an & in the page title:

News &amp;amp; Events

Tested on TYPO3 4.7.2

Reviews 2