[BUGFIX] LocalDriver->calculateBasePath doesn't properly sanitize 89/32889/2
authorBernhard Kraft <kraft@webconsulting.at>
Mon, 1 Sep 2014 13:36:01 +0000 (15:36 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 20 Sep 2014 22:22:03 +0000 (00:22 +0200)
commit80aabffe1bea30cc69e26125ba3aec7dc26e88d3
tree45505fc52ca94d56f9aca090d469b4b3058ce6ee
parent8ca2c03318a7d1639e8465fb67bb8a9de9835281
[BUGFIX] LocalDriver->calculateBasePath doesn't properly sanitize

The method "calculateBasePath" of Resource/Driver/LocalDriver.php
does not properly sanitize the passed value.

It misses to use the return value of "canonicalizeAndCheckFilePath".

Change-Id: I8f2561e4a3b432d869ba7931f3ce5877714699c0
Resolves: #61295
Releases: 6.3, 6.2
Reviewed-on: http://review.typo3.org/32548
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
(cherry picked from commit 0d5a3c0379d5fc6c208cf267b8b23993cd2b6a55)
Reviewed-on: http://review.typo3.org/32889
Reviewed-by: Stefan Froemken <froemken@gmail.com>
Tested-by: Stefan Froemken <froemken@gmail.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php