Bug #88208

Indexed Search Title - Problem with htmlspecialchars &

Added by Samuel Heinz 5 months ago. Updated about 2 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Indexed Search
Start date:
2019-04-25
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

https://forge.typo3.org/issues/56262
This issue seems to be present in the current 9.5.5 with "&" in page title.
Page titles like "Lorem & ipsum" leads to "Lorem & ispum" in source code.

Maybe the "htmlspecialchars($title)" in indexed_search/Classes/Controller/SearchController.php causes the problem?

Best regards
Sam

History

#1 Updated by Benni Mack 5 months ago

  • Target version changed from next-patchlevel to Candidate for patchlevel

#2 Updated by Manfred Egger about 2 months ago

I can confirm this issue. The problem is caused by the calls to linkPageATagWrap on lines 489 and 506 in \TYPO3\CMS\IndexedSearch\Controller\SearchController (TYPO3 9.5.8). The title gets html escaped but inside the method linkPageATagWrap the title is escaped again.

The solution is to remove the htmlspecialchars call in lines 490 and 507.

Also available in: Atom PDF