[BUGFIX] Exception on modifying page properties
authorOliver Hader <oliver@typo3.org>
Sat, 16 Jun 2012 13:23:12 +0000 (15:23 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sat, 16 Jun 2012 13:44:10 +0000 (15:44 +0200)
commitc4c18d849d3a47e5225ad65730295abfa56b25c2
tree03261bab4ef872164501b00d6ee94d30e2bba2db
parent67c0469155d55fc3f3863586900cb6fa8a3a6769
[BUGFIX] Exception on modifying page properties

An exception "#1300096564: uid of file has to be numeric" is
thrown on modifying and saving the properties of a pages record.
It's required that there are zero file elements on that page,
thus the FAL filter gets an faulty array which is not sanitized
before trying to get an accordant file.

Change-Id: I236610cebe872bcd3a4e49ceec4b24a26b2ef63b
Fixes: #38114
Releases: 6.0
Reviewed-on: http://review.typo3.org/12128
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
t3lib/class.t3lib_tcemain.php
t3lib/file/Utility/FileExtensionFilter.php
tests/Unit/t3lib/file/Utility/FileExtensionFilterTest.php [new file with mode: 0644]