Project

General

Profile

Actions

Bug #25047

closed

input checking in t3lib_div::makeInstance is too narrow

Added by Björn Pedersen almost 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-02-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The input check does a strict string comparison. If NULL is passed, the result will be a reflection exception that is hard to trace instead of the "invalid argument exception" you would get for an empty string.

Solution: also check for NULL in the input check.

triggered by: http://forge.typo3.org/issues/13074
See also: http://bugs.typo3.org/view.php?id=15923
(issue imported from #M17602)

Actions

Also available in: Atom PDF