Project

General

Profile

Actions

Bug #65482

closed

file:///* links messed up in RTE when saving

Added by Jörg Wagner over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2015-03-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

RTE interprets file:/// links as FAL file references and cripples them (applies htmlentities encoding and prepends web domain).

Fix
/typo3/sysext/core/Classes/Html/RteHtmlParser.php (line 586), insert:

                if(isset($attribArray['href']) && strpos($attribArray['href'], 'file:')===0)  $attribArray['rtekeep'] = '1';

This will add an attribute rtekeep="1" to links with schema file: which will in turn keep RTE from touching them.
The inserted rtekeep attribute will not be rendered in FE and only corrects the RTE behaviour.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #65358: file://* links not accessibleClosedNicole Cordes2015-02-26

Actions
Actions

Also available in: Atom PDF