[BUGFIX] Files with unclean path indexed multiple times 23/22923/7
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 19:56:46 +0000 (21:56 +0200)
commit04dae8707e8a0b4f6d87871cc101c2ce73cd3878
tree19f16272d797c44cae151437ca8b31d26bc9fb87
parent4044e9e3342e0cca76b6533e15665523596cf4bd
[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/22923
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
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