Issue Bug Closed

#25047input checking in t3lib_div::makeInstance is too narrow

Björn Pedersen 02/15/11, 18:00 updated 10/02/18, 12:21

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)

Reviews 1