Project

General

Profile

Actions

Bug #15047

closed

<INCLUDE_TYPOSCRIPT> / checkIncludeLines method bug

Added by Wolfgang Klinger about 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
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)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #14709: ereg calls without escaped curly bracesClosedKarsten Dambekalns2005-04-28

Actions
Actions #1

Updated by Wolfgang Klinger over 18 years ago

fixed in CVS

Actions

Also available in: Atom PDF