[BUGFIX] Ensure variable imageSizes is an array before accessing its values 71/36671/3
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:04 +0000 (23:46 +0100)
commit44b3ad63ac466bf2b0fdd5dcd5bac9eff299937a
tree70d41a91c2548fbb68525a81e304174a6b1965be
parent9fafee2348162f826a267c2dee9281e082815fc4
[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/36671
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Type/File/ImageInfo.php