[BUGFIX] Handling of uploaded files not within open_basedir 10/44710/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 13 Nov 2015 19:55:54 +0000 (20:55 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 13 Nov 2015 19:58:53 +0000 (20:58 +0100)
commit618243a68f91034017194eb46bbeea13f514a720
treeec9bbdc638209e1b89d1981877d1465be61d34a6
parentd1fc0198cf758bfc3304673eaa8f42770d2debde
[BUGFIX] Handling of uploaded files not within open_basedir

When the "upload_tmp_dir" folder is not within the "open_basedir"
an Exception will get thrown when uploading files in the fileadmin.
This patch silences open_basedir() warnings occuring in the file_exists()
check and adds detection of uploaded files as the handling of these with
move_uploaded_file() is not influenced by the open_basedir setting.

Resolves: #69356
Releases: master, 6.2
Change-Id: I649373e8910c2d30f73cbb0e3b56476196c151fd
Reviewed-on: https://review.typo3.org/44710
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/core/Classes/Resource/ResourceStorage.php