Project

General

Profile

Actions

Bug #22092

closed

Automatic linking ignores/replaces protocol

Added by Christian Hennecke almost 15 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-02-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions #1

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.

Actions #2

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.

Actions #3

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.

Actions #4

Updated by Stanislas Rolland almost 15 years ago

Sorry, the second version of the patch should work.

Actions #5

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!

Actions #6

Updated by Stanislas Rolland almost 15 years ago

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

Actions #7

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.

Actions #8

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF