Bug #88208
closedIndexed Search Title - Problem with htmlspecialchars &
100%
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
Updated by Benni Mack over 5 years ago
- Target version changed from next-patchlevel to Candidate for patchlevel
Updated by Manfred Egger over 5 years 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.
Updated by Frank Nägler about 5 years ago
- Status changed from New to In Progress
- Assignee set to Frank Nägler
Updated by Gerrit Code Review about 5 years ago
- Status changed from In Progress to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61959
Updated by Gerrit Code Review about 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61959
Updated by Gerrit Code Review about 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61972
Updated by Frank Nägler about 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 2ef6359f970e3bf713ac301dfb07694868dd7638.
Updated by Henri Nathanson over 4 years ago
- Related to Bug #90935: Indexed Search double htmlspecialchars full path in result info section added