Project

General

Profile

Actions

Bug #24464

closed

htmlArea RTE: Trailing slash stripped from href of autolinks

Added by Philipp Gampe over 13 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2011-01-04
Due date:
% Done:

0%

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

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

Actions #1

Updated by Stanislas Rolland over 13 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.

Actions #2

Updated by Stanislas Rolland over 13 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.

Actions #3

Updated by Stanislas Rolland over 13 years ago

Patch committed to SVN TYPO3core trunk (revision 10008) and branch TYPO3_4-4 (revision 10009).

Actions #4

Updated by Ernesto Baschny almost 11 years ago

  • Target version deleted (1088)
Actions #5

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF