#15047<INCLUDE_TYPOSCRIPT> / checkIncludeLines method bug
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.</include_typoscript>
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.