Project

General

Profile

Actions

Bug #76149

closed

Pagetree view for content elements when trying to add content element anchor links: Tooltip rendered as text via htmlspecialchars()

Added by Joel Aihende almost 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-05-11
Due date:
% Done:

100%

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

Description

The bug occurs when you want to link a content element in the RTE with the "Insert Link" action int TYPO3 7.6.4. All elements which have titles/content which is too long used to be converted into a tooltip. Now the element is rendered as clear text.

The element is transformed into a tooltip at the following file location:

sysext/backend/Classes/Utility/BackendUtility.php:2256

if ($titleOrig != $title) {
> $title = '<span title="' . $titleOrig . '">' . $title . '</span>';
}

Here its gets passed to htmlspecialchars():

sysext/recordlist/Classes/LinkHandler/PageLinkHandler.php:205

            $out .= '
                <li' . $selected . '>
                    <span class="list-tree-group">
                        <span class="list-tree-icon">
                            ' . $icon . '
                        </span>
                        <span class="list-tree-title">
                            <a href="#" class="t3js-pageLink" data-id="' . (int)$expPageId . '" data-anchor="#' . (int)$row['uid'] . '">
                            class="t3js-pageLink"    ' . htmlspecialchars(BackendUtility::getRecordTitle('tt_content', $row, true, null, true)) . '
                            </a>
                        </span>
                    </span>
                </li>
                ';

Before:

After:


Files

tooltip_before.png (11.7 KB) tooltip_before.png Joel Aihende, 2016-05-11 14:28
tooltip_after.png (46.1 KB) tooltip_after.png Joel Aihende, 2016-05-11 14:28

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #78055: Pagetree view for content elements when trying to add content element anchor links: Tooltip rendered as textClosedDaniel Goerz2016-09-24

Actions
Actions #1

Updated by Gerrit Code Review almost 8 years ago

  • Status changed from New 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/48106

Actions #2

Updated by Daniel Goerz almost 8 years ago

  • Description updated (diff)
Actions #3

Updated by Gerrit Code Review almost 8 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/48106

Actions #4

Updated by Gerrit Code Review almost 8 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48207

Actions #5

Updated by Tomita Militaru almost 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF