[BUGFIX] PHP warning: open_basedir restriction
authorXavier Perseguers <xavier@typo3.org>
Tue, 16 Oct 2012 15:32:06 +0000 (17:32 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 29 Oct 2012 07:34:01 +0000 (08:34 +0100)
Change-Id: Iae39a4d5c58a1e509eed55ab089caf1b2c140078
Fixes: #42054
Relates: #35212
Releases: 4.6, 4.7, 6.0
Reviewed-on: http://review.typo3.org/15956
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_compressor.php

index b2e96b5..e93723f 100644 (file)
@@ -506,7 +506,7 @@ class t3lib_Compressor {
                }
 
                        // 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;
                }