[BUGFIX] Files with unclean path indexed multiple times 99/23199/2
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 6 Apr 2013 15:11:52 +0000 (17:11 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Tue, 20 Aug 2013 20:37:42 +0000 (22:37 +0200)
commit91c09f1982487f1adc552f35c27c535944dd90c8
tree9a00e1e74ac0b67b7c62c2db0c31d70e23da1ff4
parentcf47f59844e38bf66e6b491d46979cce4947d907
[BUGFIX] Files with unclean path indexed multiple times

When adding a file or requesting a file by an identifier
cleanup any . and .. in the path before handing off
to the driver so files are not indexed multiple times.

Fixes: #46989
Releases: 6.2, 6.1, 6.0
Change-Id: I4198a8885a6a148e68e1e0f717775f9af976a9ef
Reviewed-on: https://review.typo3.org/23199
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Classes/Resource/Driver/AbstractHierarchicalFilesystemDriver.php
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
typo3/sysext/core/Classes/Resource/ResourceStorage.php
typo3/sysext/core/Classes/Utility/File/BasicFileUtility.php
typo3/sysext/core/Classes/Utility/PathUtility.php
typo3/sysext/core/Tests/Unit/Utility/PathUtilityTest.php