Project

General

Profile

Actions

Bug #16642

closed

TCEmain: Wrong syntax on checking NEW items

Added by Oliver Hader over 17 years ago. Updated about 17 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-10-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
5
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

There are some lines like in class.t3lib_tcemain.php
if (strstr($pid_value,'NEW'))

The syntax for substr is
string substr ( string string, int start [, int length] )

The code shown above will always return the first argument of the substr-call.
I guess a "preg_match" should have been standing there.

olly

(issue imported from #M4384)


Files

tcemain.diff (1.41 KB) tcemain.diff Administrator Admin, 2006-10-13 13:05
tcemain_2.diff (2.02 KB) tcemain_2.diff Administrator Admin, 2006-10-13 13:42
Actions

Also available in: Atom PDF