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:40 +0000 (14:22 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Mon, 5 Jan 2009 14:22:40 +0000 (14:22 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4655 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tstemplate.php

index 20ce8f6..8a0cca8 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 #9506: label uid shows not working 
        * Fixed bug #10056: Misspelling english word "guesbooks" 
 
index cdd427c..8edeb6e 100755 (executable)
@@ -225,7 +225,17 @@ 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'], true);
                        foreach ($pathArr as $p) {
@@ -1581,4 +1591,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tstemplate.php']);
 }
 
-?>
\ No newline at end of file
+?>