Bug #20142
closedclass and title parameters of typolinks get broken
0%
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
Updated by Stanislas Rolland over 14 years ago
This issue was partially fixed by unrelated fix to t3lib_div. So here is a new version of the patch against trunk revision 7139.
Updated by Stanislas Rolland over 14 years ago
Committed to SVN TYPO3core trunk (revision 7297) and branch TYPO3_4-3 (revision 7298).