[BUGFIX] PHP warning: open_basedir restriction
authorXavier Perseguers <xavier@typo3.org>
Tue, 16 Oct 2012 15:32:06 +0000 (17:32 +0200)
committerMichael Stucki <michael.stucki@typo3.org>
Fri, 26 Oct 2012 13:28:29 +0000 (15:28 +0200)
Change-Id: Ie1dfe4306cad8bdc23864f31a77dac980eac3494
Fixes: #42054
Relates: #35212
Releases: 4.6, 4.7, 6.0
Reviewed-on: http://review.typo3.org/15741
Reviewed-by: Mattias Nilsson
Reviewed-by: Stefan Neufeind
Reviewed-by: Michael Stucki
Tested-by: Michael Stucki
typo3/sysext/core/Classes/Resource/ResourceCompressor.php

index b8f0105..33b3cb5 100644 (file)
@@ -525,7 +525,7 @@ class ResourceCompressor {
                        }
                }
                // if the file is from a special TYPO3 internal directory, add the missing typo3/ prefix
-               if (is_file(PATH_site . TYPO3_mainDir . $filename)) {
+               if (is_file(realpath(PATH_site . TYPO3_mainDir . $filename))) {
                        $filename = TYPO3_mainDir . $filename;
                }
                // build the file path relatively to the PATH_site