Project

General

Profile

Bug #22615 ยป 14342.diff

Administrator Admin, 2010-05-09 19:21

View differences:

t3lib/class.t3lib_compressor.php (Arbeitskopie)
foreach ($matches[2] as $matchCount => $match) {
// remove '," or white-spaces around
$match = preg_replace('/[\"\'\s]/', '', $match);
$newPath = t3lib_div::resolveBackPath('../../' . TYPO3_mainDir . $oldDir . $match);
$contents = str_replace($matches[1][$matchCount], '(\'' . $newPath . '\')', $contents);
// we must not rewrite data uris (see RFC 2397)
if (strpos($match, 'data:') === FALSE) {
$newPath = t3lib_div::resolveBackPath('../../' . TYPO3_mainDir . $oldDir . $match);
$contents = str_replace($matches[1][$matchCount], '(\'' . $newPath . '\')', $contents);
}
}
return $contents;
}
    (1-1/1)