diff --git a/e107_handlers/file_class.php b/e107_handlers/file_class.php index 1e260a8b5..ee334ec9c 100644 --- a/e107_handlers/file_class.php +++ b/e107_handlers/file_class.php @@ -1044,7 +1044,7 @@ class e_file $DOWNLOADS_DIRECTORY = ($DOWNLOADS_DIR[0] == DIRECTORY_SEPARATOR) ? $DOWNLOADS_DIR : e_BASE.$DOWNLOADS_DIR; // support for full path eg. /home/account/folder. $FILES_DIRECTORY = e_BASE.e107::getFolder('FILES'); $MEDIA_DIRECTORY = realpath(e_MEDIA); // could be image, file or other type. - $SYSTEM_DIRECTORY = realpath(e_SYSTEM); // downloading of logs etc. via browser if required. (Admin-only) + $SYSTEM_DIRECTORY = realpath(e_SYSTEM); // downloading of logs or hidden files etc. via browser if required. $file = $tp->replaceConstants($file); @@ -1062,11 +1062,6 @@ class e_file $path_downloads = realpath($DOWNLOADS_DIRECTORY); $path_public = realpath($FILES_DIRECTORY."public/"); - if(strstr($path, $SYSTEM_DIRECTORY) && !ADMIN) - { - header("location: {$e107->base_path}"); - exit(); - } if(!strstr($path, $path_downloads) && !strstr($path,$path_public) && !strstr($path, $MEDIA_DIRECTORY) && !strstr($path, $SYSTEM_DIRECTORY)) {