[BUGFIX] Files with unclean path indexed multiple times 70/22070/2
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 6 Apr 2013 15:11:52 +0000 (17:11 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 6 Jul 2013 21:36:46 +0000 (23:36 +0200)
commit8ebf5d308cfccf8b0ae3f3d9663996f2b5372066
tree510aed355946b10bac43f6d9b12e7c52438c18ee
parentf45af2ceed02c849c30715892582b68e6aff5e5a
[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.

Change-Id: I324c4637621165a56470fb95864eeff1254f62dc
Fixes: #46989
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/22070
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
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