[BUGFIX] Guard FAL API when called with invalid identifiers 26/30526/5
authorHelmut Hummel <helmut.hummel@typo3.org>
Mon, 2 Jun 2014 18:16:07 +0000 (20:16 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Wed, 11 Jun 2014 09:50:05 +0000 (11:50 +0200)
commit944d335b9e5a8faa97a37d1c6faeac4c31fc2163
treee1312399986366b3d82f3999bdfef3661bc24ff5
parent1682401c36170f8519f89a1c069403403ee6253e
[BUGFIX] Guard FAL API when called with invalid identifiers

When calling ResourceFactory::getInstance()
->getFileObjectFromCombinedIdentifier($identifier)
with $identifier === NULL or $identifier === ''
an index entry is written for storage 0 which contains the
last path segment of PATH_site as identifier.

Guard the API in two places by throwing exceptions
when an invalid file identifier is given.

Resolves: #59295
Releases: 6.2
Change-Id: Ie2d6d811193ee21b865161984ddbac240388573b
Reviewed-on: https://review.typo3.org/30526
Reviewed-by: Fabien Udriot
Tested-by: Fabien Udriot
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
typo3/sysext/core/Classes/Resource/Index/Indexer.php
typo3/sysext/core/Classes/Resource/ResourceFactory.php