X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=9c0ef1d08033327c421e247a906cb15f8e0edfdc;hb=dd0a1cf586fc37fe9a3d84af277c7504136a3bf9;hp=b69fd91c45905d3d51ba6cf57e60491ddbf9140b;hpb=ef3398f09a32adcb30d4a56f85bff732d3745ace;p=friendica.git diff --git a/boot.php b/boot.php index b69fd91c45..9c0ef1d080 100644 --- a/boot.php +++ b/boot.php @@ -42,7 +42,7 @@ define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_CODENAME', 'Asparagus'); define ( 'FRIENDICA_VERSION', '3.5.3-dev' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); -define ( 'DB_UPDATE_VERSION', 1232 ); +define ( 'DB_UPDATE_VERSION', 1233 ); /** * @brief Constant with a HTML line break. @@ -1399,7 +1399,7 @@ function get_temppath() { if (($temppath != "") && App::directory_usable($temppath)) { // We have a temp path and it is usable - return $temppath; + return App::realpath($temppath); } // We don't have a working preconfigured temp path, so we take the system path. @@ -1407,6 +1407,9 @@ function get_temppath() { // Check if it is usable if (($temppath != "") && App::directory_usable($temppath)) { + // Always store the real path, not the path through symlinks + $temppath = App::realpath($temppath); + // To avoid any interferences with other systems we create our own directory $new_temppath = $temppath . "/" . $a->get_hostname(); if (!is_dir($new_temppath)) { @@ -1495,7 +1498,7 @@ function get_itemcachepath() { $itemcache = get_config('system', 'itemcache'); if (($itemcache != "") && App::directory_usable($itemcache)) { - return $itemcache; + return App::realpath($itemcache); } $temppath = get_temppath();