Project

General

Profile

Bug #76149

Updated by Daniel Goerz almost 8 years ago

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 

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

 Here its gets passed to htmlspecialchars(): 

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

 <pre> 
             $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> 
				 '; 

 </pre> 

 Before: 
 !https://forge.typo3.org/attachments/download/31000/tooltip_before.png! 

 After: 
 !https://forge.typo3.org/attachments/download/31001/tooltip_after.png!

Back