Merge pull request #3301 from annando/issue-3300

The temp path creation couldn't create a subdirectory with the hostname
This commit is contained in:
rabuzarus 2017-04-07 23:48:32 +02:00 committed by GitHub
commit 366ccdb09a

View File

@ -2472,7 +2472,7 @@ function get_temppath() {
// Check if it is usable // Check if it is usable
if (($temppath != "") AND App::directory_usable($temppath)) { if (($temppath != "") AND App::directory_usable($temppath)) {
// To avoid any interferences with other systems we create our own directory // To avoid any interferences with other systems we create our own directory
$new_temppath .= "/".$a->get_hostname(); $new_temppath = $temppath."/".$a->get_hostname();
if (!is_dir($new_temppath)) { if (!is_dir($new_temppath)) {
/// @TODO There is a mkdir()+chmod() upwards, maybe generalize this (+ configurable) into a function/method? /// @TODO There is a mkdir()+chmod() upwards, maybe generalize this (+ configurable) into a function/method?
mkdir($new_temppath); mkdir($new_temppath);