Skip to content
Snippets Groups Projects
Commit fe23a0b0 authored by Stefan Froemken's avatar Stefan Froemken Committed by Helmut Hummel
Browse files

[BUGFIX] Do not use realpath for temporary file names

Generating a temporary file with the PHP function tempnam,
returns the realpath of the file. There are however
situations where PATH_site has some symlinks or mounts, thus
comparing those paths will fail.

Instead of just using the path the function returns, we only
use the filename and prefix that with PATH_site, so that
the check if the temporary path is within PATH_site will succeed.

Resolves: #70106
Releases: master, 7.6, 6.2
Change-Id: I39a1830ff1a5791aa3fdc91056e3870fbb6dde1f
Reviewed-on: https://review.typo3.org/50490


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarAlexander Krist <mail@alex-krist.de>
Tested-by: default avatarAlexander Krist <mail@alex-krist.de>
Reviewed-by: default avatarDaniela Grammlich <grammlich@punkt.de>
Tested-by: default avatarDaniela Grammlich <grammlich@punkt.de>
Reviewed-by: default avatarJoerg Boesche <typo3@joergboesche.de>
Reviewed-by: default avatarAlexander Stehlik <alexander.stehlik@gmail.com>
Tested-by: default avatarAlexander Stehlik <alexander.stehlik@gmail.com>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarHelmut Hummel <typo3@helhum.io>
Tested-by: default avatarHelmut Hummel <typo3@helhum.io>
parent 3d107451
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment