Project

General

Profile

Actions

Bug #39290

closed

Epic #65814: Make Indexed search extbase plugin shine

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

Added by Andreas Kiessling over 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Category:
Indexed Search
Target version:
Start date:
2012-07-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

Actions

Also available in: Atom PDF