[BUGFIX] Correct storage selection (common prefixes) 66/23966/5
authorErnesto Baschny <ernst@cron-it.de>
Mon, 23 Sep 2013 08:29:56 +0000 (10:29 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 23 Sep 2013 19:55:34 +0000 (21:55 +0200)
commit14b4edb7765b9e6c2a831198f6de56c9e5ac3696
tree4710233c5ce4f2070ee382678a7e0473bbb28061
parentf28a9861a85bf7074809223de58dfbc6c3cb1fd1
[BUGFIX] Correct storage selection (common prefixes)

If there is a local storage "uploads/test/" and a requested file
is in "uploads/other/file.txt", the storage matching will not
consider this storage for this file anymore, although they share a
common prefix, but will use a correct matching storage (e.g. 0).

Releases: 6.2, 6.1, 6.0
Resolves: #52173
Change-Id: Id14ffd6620554c086b6e77dca285ade8dee39ab2
Reviewed-on: https://review.typo3.org/23966
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Classes/Resource/ResourceFactory.php
typo3/sysext/core/Tests/Unit/Resource/ResourceFactoryTest.php