Issue Bug Closed

#20142class and title parameters of typolinks get broken

Stanislas Rolland 03/06/09, 21:33 updated 10/02/18, 12:27

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.