Project

General

Profile

Actions

Bug #20142

closed

class and title parameters of typolinks get broken

Added by Stanislas Rolland over 15 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-03-06
Due date:
% Done:

0%

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

Description

Problems:

1. link wizard: if the title parameter contains whitespaces and you try to update the link with the link wizard, anything following the first whitespace of the title is lost;

2. neither link wizard nor RTE transformation honour multiple classes on class attribute of TYPO3 link tag or class parameter of typolink;

3. t3lib_div::unQuoteFilenames: this function used by RTE transformation and typolink FE rendering is working by accident:

3a. if a parameter of the typolink is quoted but does not contain a space, the output of the function is erratic; any quoted parameter that does not contain a space will make the function produce wrong results;

3b. if a parameter is quoted and contains spaces, the returned array contains gaps, and typolink rendering/transformation fails: parts of the title attribute may be forgotten; this may well impact other users of the function that expect a specific number/order of parameters.

4. The link wizard uses t3lib_trimExplode instead of t3lib_div::unQuoteFilenames and therefore breaks any current title or list of classes.

Solution:

1. Fix t3lib_div::unQuoteFilenames.

2. link wizard: use t3lib_div::unQuoteFilenames.

3. In link wizard and RTE transformation: wrap the class parameter with quotes if it contains whitespaces.
(issue imported from #M10629)


Files


Related issues 7 (0 open7 closed)

Related to TYPO3 Core - Bug #19967: typolink: title tag generation not correctly working, if in the title-tag string is an occurance of whitespacesClosedStanislas Rolland2009-02-04

Actions
Has duplicate TYPO3 Core - Bug #16590: wrong titletext handling in link browserClosedStanislas Rolland2006-09-23

Actions
Has duplicate TYPO3 Core - Bug #18692: TypoLinks with a title set are generated wrongClosedStanislas Rolland2008-04-24

Actions
Has duplicate TYPO3 Core - Bug #20357: CE Text+Image: Title attributes at Image Links are cut off, if there is a space in the titleClosedChris topher2009-04-24

Actions
Has duplicate TYPO3 Core - Bug #19011: Image-linktitle not showing correct in FrontendClosedChris topher2008-06-24

Actions
Has duplicate TYPO3 Core - Bug #19448: typolink not transformed nor rendered correctly with multiple class names in class parameterClosedStanislas Rolland2008-10-11

Actions
Has duplicate TYPO3 Core - Bug #22718: Linked headers: title attribute "allows" only a wordClosedStanislas Rolland2010-05-26

Actions
Actions

Also available in: Atom PDF