Project

General

Profile

Bug #59133 » patch_62307.diff

Helmut Hummel, 2014-10-24 10:20

View differences:

typo3_src-6.2.5.new/typo3/sysext/install/Classes/Updates/RteFileLinksUpdateWizard.php 2014-10-17 14:29:05.028318700 +0200
if ($fileObject instanceof \TYPO3\CMS\Core\Resource\AbstractFile) {
// Next, match the reference path in the content to be sure it's present inside a <link> tag
$content = $record[$reference['field']];
$regularExpression = '$<((link|LINK) ' . str_replace(' ', '%20', $reference['ref_string']) . ').*>$';
$regularExpression = '$<((link|LINK) ' . str_replace('%2F', '/', rawurlencode($reference['ref_string'])) . ').*>$';
$matches = array();
$result = preg_match($regularExpression, $content, $matches);
if ($result) {
(2-2/2)