Issue Bug Closed

#32517t3lib_compressor set local filename to remote uri for external resources

Morton Jonuschat 12/13/11, 21:45 updated 10/02/18, 12:19

Description

The compressor doesn’t correctly handles files that are added as an external resource, for example using

page.includeJS {
jquery = http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
jquery.external = 1
}

t3lib_compressor doesn’t update the filename to the local copy after downloading the asset. This results in error messages similar to this one:

PHP Warning: filemtime(): stat failed for /var/www/Intro/http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js in /var/www/typo3_src-git/t3lib/class.t3lib_compressor.php line 295

A fix has been uploaded at https://review.typo3.org/#change,7127

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.