[BUGFIX] Correct storage selection (common prefixes) 93/23993/2
authorErnesto Baschny <ernst@cron-it.de>
Mon, 23 Sep 2013 08:29:56 +0000 (10:29 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 24 Sep 2013 08:54:16 +0000 (10:54 +0200)
commit3f53e6b49e9e438aa8d84c2654689fe6867bbaca
treefff73cf762fec1df30c00d6532107c6936564163
parent1d17a21e85559df789e911f406446f563e27ea90
[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/23993
Reviewed-by: Stefan Neufeind
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/core/Classes/Resource/ResourceFactory.php
typo3/sysext/core/Tests/Unit/Resource/ResourceFactoryTest.php