aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-11-18 17:14:26 +0100
committerLukas Reschke <lukas@owncloud.com>2014-11-18 17:14:26 +0100
commit1b85f40cbeb339fb198fd7a7a1203d614fcb77cd (patch)
treeddf9cab6d9966d9d7b1022ed98e32962ef2b6c14 /apps/files_sharing
parent309788003d7f109e2794e66d1314b75c93805715 (diff)
downloadnextcloud-server-1b85f40cbeb339fb198fd7a7a1203d614fcb77cd.tar.gz
nextcloud-server-1b85f40cbeb339fb198fd7a7a1203d614fcb77cd.zip
$file only contains the filename and not the absolute path, that means that files in a subdirectory will not get properly resolved and an empty filesize is returned.
This feature only exists on master.
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/controllers/sharecontroller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/controllers/sharecontroller.php b/apps/files_sharing/lib/controllers/sharecontroller.php
index a3d5b6d44a0..e5fd0f401c2 100644
--- a/apps/files_sharing/lib/controllers/sharecontroller.php
+++ b/apps/files_sharing/lib/controllers/sharecontroller.php
@@ -173,7 +173,7 @@ class ShareController extends Controller {
$shareTmpl['server2serversharing'] = Helper::isOutgoingServer2serverShareEnabled();
$shareTmpl['protected'] = isset($linkItem['share_with']) ? 'true' : 'false';
$shareTmpl['dir'] = $dir;
- $shareTmpl['fileSize'] = \OCP\Util::humanFileSize(\OC\Files\Filesystem::filesize($file));
+ $shareTmpl['fileSize'] = \OCP\Util::humanFileSize(\OC\Files\Filesystem::filesize($originalSharePath));
// Show file list
if (Filesystem::is_dir($originalSharePath)) {