Project

General

Profile

Bug #63045 ยป RteFileLinksUpdateWizard.php.diff

Nils Blattner, 2014-11-18 11:40

View differences:

typo3/sysext/install/Classes/Updates/RteFileLinksUpdateWizard.php 2014-11-18 11:30:56.000000000 +0100
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) {
    (1-1/1)