[BUGFIX] Off-by-one error in FAL's LocalDriver 01/46501/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 3 Feb 2016 14:33:44 +0000 (15:33 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Fri, 5 Feb 2016 15:52:29 +0000 (16:52 +0100)
commit2d7d51aa311881ec026706ec416755a0d49c102a
tree32e52efe1ecdcb8e4ef38f8843ba9d0b673fefb8
parent8b9bd3427bc404ea9d9d41f5cc9136c02bff98fc
[BUGFIX] Off-by-one error in FAL's LocalDriver

Currently, the LocalDriver of FAL has an off-by-one issue. The passed
starting pointer gets decremented by one, causing issues in the file list
while browsing.

The pointer decrement is removed with this change.

The whole core does not call ``ResourceStorage->getFilesInFolder()``
with the parameters``$start`` and ``$maxNumberOfItems`` having
another value than 0, so this change is assumed to be safe.

Change-Id: I4e24f18b3222f2abdbed83fbbcb18c73d6e52316
Resolves: #73103
Releases: master, 7.6, 6.2
Reviewed-on: https://review.typo3.org/46501
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php