Bug #22092
closedAutomatic linking ignores/replaces protocol
0%
Description
When you enter a URL in an RTE field it will be linked to its address automatically. However, the created links src attribute always uses HTTP as protocol, even if the URL uses FTP or something else.
Steps to reproduce:
1. Create a new content element with a RTE field.
2. Enter a full URL, e.g., http://www.example.com. Press Enter. The URL will be linked automatically with the src attribute of the a tag being filled with itself. This is correct.
3. Now enter another URL using a different protocol, e.g., ftp://ftp.example.com. Press Enter. The URL will be linked automatically with the src attribute of the a tag wrongly saying http://ftp.example.com.
This is really problematic for editors since they have to double-check everything.
(issue imported from #M13480)
Files
Updated by Christian Hennecke almost 15 years ago
Sorry, I was talking about the href attribute of course.
BTW, this problem occurs with Firefox 3.5.7 and Opera 10.10 under Linux. It DOES work correctly with IE8 under Windows, though.
Updated by Stanislas Rolland almost 15 years ago
Please test the attached patch for Firefox, Opera and Safari, and TYPO3 4.3.
You will need to clear the RTE cache (using the TYPO3 backend Clear cache menu) and the browsers caches.
Updated by Christian Hennecke almost 15 years ago
Sorry this doesn't work here, at least with Firefox. The link created only has a href of "http://http", "ftp://ftp" etc.
Updated by Stanislas Rolland almost 15 years ago
Sorry, the second version of the patch should work.
Updated by Christian Hennecke almost 15 years ago
Yes, this fixes the problem. Tested with Firefox 3.5.8 and Opera 10.10 on Linux. Thanks!
Updated by Stanislas Rolland almost 15 years ago
Committed to SVN TYPO3core branch TYPO3_4-3 (revision 6916).
Updated by Stanislas Rolland almost 15 years ago
The trunk version of this patch was bundled into #13580 and was therefore committed with trunk revision 6940.