[BUGFIX] Do not add trailing slashes to files 96/23696/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Mon, 9 Sep 2013 15:13:09 +0000 (17:13 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 9 Sep 2013 16:25:24 +0000 (18:25 +0200)
commit3315bc618396818cb6f1dfac7d19be6023108067
tree7d107c1fe97c182b190e9f743919dd9b6fc58186
parent2fb54fcae0d88ec1e1265da73a25ae5f9aa01eed
[BUGFIX] Do not add trailing slashes to files

In the security fix #50883 a canonicalize method
for folders has been used where items could
either be files or folders.

This added a trailing slash to files which triggered
a basedir PHP warning if basedir is configured
in PHP.

Use the canonicalize method for file paths instead
to fix this issue.

Resolves: #51761
Releases: 6.0, 6.1, 6.2
Change-Id: I9ef4b6a90ca257ad0104115bd7d48c4de68f135f
Reviewed-on: https://review.typo3.org/23696
Reviewed-by: Simon Schick
Tested-by: Simon Schick
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php