Project

General

Profile

Actions

Bug #59133

closed

Error while converting RTE enabled fields to FAL

Added by Tizian Schmidlin almost 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Install Tool
Target version:
Start date:
2014-05-27
Due date:
% Done:

100%

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

Description

When converting files from RTE to FAL, I got several issues stating that probably the reference index was out of date.

Actually, the problem came from the generation of the regular expression in RteFileLinksUpdateWizard (see also #51800).

This is what the regex used to look like before:

$regularExpression = '$<(link ' . str_replace(' ', '%20', $reference['ref_string']) . ').*>$';

Basically it replaced the whitespaces with %20. The reason, why urlencode was not used here is obvious but it still should have been considered to use it, I think.

This is how it worked for me in the end:

$regularExpression = '$<(link ' . str_replace('%2F','/',urlencode($reference['ref_string'])) . ').*>$';

This way you resolve any issues with german specialchars that are savec urlencoded in the database.

Regards
Tizian


Files

dump.sql (12.1 KB) dump.sql Christian Nölle, 2014-07-31 14:36
patch_62307.diff (816 Bytes) patch_62307.diff Helmut Hummel, 2014-10-24 10:20

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #51800: 6.1.4 Update wizard fails at step "Migrate all file links of RTE-enabled fields to FAL" for pdf documentsClosed2013-09-06

Actions
Has duplicate TYPO3 Core - Bug #62307: RteFileLinksUpdateWizard.php only handles spaces, no other 'special' charactersClosed2014-10-17

Actions
Actions

Also available in: Atom PDF