Fixed bug #10055: Add contrib directory to list of allowed paths (thanks to Dan Osipov)
authorSteffen Kamper <info@sk-typo3.de>
Mon, 5 Jan 2009 14:22:11 +0000 (14:22 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Mon, 5 Jan 2009 14:22:11 +0000 (14:22 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@4654 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tstemplate.php

index 46ae182..e0509ab 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-01-05  Steffen Kamper  <info@sk-typo3.de> 
 
+       * Fixed bug #10055: Add contrib directory to list of allowed paths (thanks to Dan Osipov)  
        * Fixed bug Fixed bug #9506: label uid shows not working  
        * Fixed bug #10056: Misspelling english word "guesbooks" 
 
index 6e3da80..80e8869 100755 (executable)
@@ -225,7 +225,18 @@ class t3lib_TStemplate     {
                }
 
                        // Sets the paths from where TypoScript resources are allowed to be used:
-               $this->allowedPaths = Array ('media/','fileadmin/','uploads/','typo3temp/','t3lib/fonts/',TYPO3_mainDir.'ext/',TYPO3_mainDir.'sysext/','typo3conf/ext/');
+               $this->allowedPaths = Array(
+                       'media/',
+                       'fileadmin/',
+                       'uploads/',
+                       'typo3temp/',
+                       't3lib/fonts/',
+                       TYPO3_mainDir . 'ext/',
+                       TYPO3_mainDir . 'sysext/',
+                       TYPO3_mainDir . 'contrib/',
+                       'typo3conf/ext/'
+               );
+               
                if ($GLOBALS['TYPO3_CONF_VARS']['FE']['addAllowedPaths'])       {
                        $pathArr = t3lib_div::trimExplode(',',$GLOBALS['TYPO3_CONF_VARS']['FE']['addAllowedPaths'],1);
                        while(list(,$p)=each($pathArr)) {