Bug #24464
closedhtmlArea RTE: Trailing slash stripped from href of autolinks
0%
Description
If you enter a link like http://error.philippgampe.info/ <return> it turns itself into a link. However, the / is stripped from URL which means that the URL is wrong. Browsers will fix this, but it is wrong nevertheless and linkvalidator will use t3lib_div::getURL which will create a faulty http query resulting in a 400 bad request response. (Should be 404 actually).
Moreover the class and title attribute are missing.
(issue imported from #M16904)
Files
Updated by Stanislas Rolland almost 14 years ago
The attached patch will retain the trailing slash, if entered. However, it will not add a trailing slash if not entered because I think that the URL is valid without the trailing slash.
Updated by Stanislas Rolland almost 14 years ago
I do not see how a title or class attribute could be set when the link is created by entering the url. However, the class and title attributes may be set after the link is created by using either the Modify link dialogue or the Edit element dialogue.
Updated by Stanislas Rolland almost 14 years ago
Patch committed to SVN TYPO3core trunk (revision 10008) and branch TYPO3_4-4 (revision 10009).