Skip to content
Snippets Groups Projects
Commit ab479dd5 authored by Christian Eßl's avatar Christian Eßl Committed by Oliver Hader
Browse files

[BUGFIX] Correctly double and single quotes in page tree tooltips

There were several problems with tooltips in the page tree:

- htmlspecialchars was applied twice to the tooltip string. Once in
BackendUtility::titleAttribForPages, once in TreeController.
- When applying double or single quotes to a page title, the tooltips in
the page tree would show these as html entities.

Double and single quotes are now allowed, while any potential html tags
in the title will be stripped from the tooltip. Any of those characters
(", ', <, >) left in the tooltip are later escaped to unicode in the
json view.

Resolves: #91424
Releases: master
Change-Id: I53b2ad6bbd4e4131535eb573422a8cbd5d002858
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64511


Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
parent 5e791a00
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment