Issue Bug Closed

#59133Error while converting RTE enabled fields to FAL

Tizian Schmidlin 05/27/14, 10:35 updated 10/02/18, 11:55

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

Reviews 2