Actions
Bug #15047
closed<INCLUDE_TYPOSCRIPT> / checkIncludeLines method bug
Start date:
2005-10-13
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
t3lib_tsparser's checkIncludeLines checks for a line break before and after the <INCLUDE_TYPOSCRIPT..> string, but doesn't ignore other whitespace characters than space before.
Coincidentally I had a tab afterwards and spent some time to find this bug. :-(
class.t3lib_tsparser.php, checkIncludeLines uses
ereg("\r?\n[ ]*$
and
ereg("^[ ]*\r?\n"
This should generally be changed to preg_match calls as they are faster.
http://cz.php.net/preg_match
(issue imported from #M1596)
Actions