Issue Bug Closed

#22092Automatic linking ignores/replaces protocol

Christian Hennecke 02/09/10, 15:14 updated 10/02/18, 12:25

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)

Reviews 0

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

Files 1

History 8

  1. Christian Hennecke commented 02/09/10, 15:22

    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.

  2. Stanislas Rolland commented 02/19/10, 04:21

    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.

  3. Christian Hennecke commented 02/19/10, 11:59

    Sorry this doesn’t work here, at least with Firefox. The link created only has a href of “http://http”, “ftp://ftp” etc.

  4. Stanislas Rolland commented 02/19/10, 17:49

    Sorry, the second version of the patch should work.

  5. Christian Hennecke commented 02/19/10, 19:16

    Yes, this fixes the problem. Tested with Firefox 3.5.8 and Opera 10.10 on Linux. Thanks!

  6. Stanislas Rolland commented 02/19/10, 20:00

    Committed to SVN TYPO3core branch TYPO3_4-3 (revision 6916).

  7. Stanislas Rolland commented 02/22/10, 01:15

    The trunk version of this patch was bundled into #13580 and was therefore committed with trunk revision 6940.

  8. Benni Mack changed status Resolved Closed 10/02/18, 12:25