Project

General

Profile

Feature #17527 » patch_recursive_ts_include.txt

Administrator Admin, 2007-08-13 15:46

 
Index: /Users/martin/Documents/workspace/typo3_core/t3lib/class.t3lib_tsparser.php
===================================================================
--- /Users/martin/Documents/workspace/typo3_core/t3lib/class.t3lib_tsparser.php (revision 2438)
+++ /Users/martin/Documents/workspace/typo3_core/t3lib/class.t3lib_tsparser.php (working copy)
@@ -516,7 +516,9 @@
$filename = t3lib_div::getFileAbsFileName(trim($sourceParts[1]));
if (strcmp($filename,'')) { // Must exist and must not contain '..' and must be relative
if (@is_file($filename) && filesize($filename)<100000) { // Max. 100 KB include files!
- $newString.=t3lib_div::getUrl($filename).chr(10);
+ // check for includes in included text
+ $included_text = t3lib_TSparser::checkIncludeLines(t3lib_div::getUrl($filename));
+ $newString.= $included_text.chr(10);
}
}
break;
(1-1/2)