Merge pull request #10249 from mroi/patch-1

file size on non-(Linux/BSD/Windows)-installations
This commit is contained in:
Thomas Müller 2014-08-11 13:02:01 +02:00
commit b83d00f847
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class LargeFileHelper {
if (\OC_Helper::is_function_enabled('exec')) {
$os = strtolower(php_uname('s'));
$arg = escapeshellarg($filename);
$result = '';
$result = null;
if (strpos($os, 'linux') !== false) {
$result = $this->exec("stat -c %s $arg");
} else if (strpos($os, 'bsd') !== false) {