[BUGFIX] Ensure variable imageSizes is an array before accessing its values 98/36698/2
authorFabien Udriot <fabien.udriot@ecodev.ch>
Thu, 5 Feb 2015 14:01:04 +0000 (15:01 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 5 Feb 2015 22:46:32 +0000 (23:46 +0100)
commit0db2cbb72f4899e77300df445955c873a7b5b866
treebf3e42eae29ecd1d678c5859fbe00d3451aba8ed
parentbf16ad35b62c6f1a3479c00acc7eaae517a4e0e0
[BUGFIX] Ensure variable imageSizes is an array before accessing its values

It could be the PHP function "getimagesize" will fail to get the width and
the height of an image if the format is not supported by PHP. The patch
prevent accessing the value of an array which may be not an array.

Resolves: #64875
Releases: master, 6.2
Change-Id: Ibcbeb6edc7e23a2468cbcce40c2ecb0c2ba21142
Reviewed-on: http://review.typo3.org/36698
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Type/File/ImageInfo.php