diff --git a/helpers/files.php b/helpers/files.php index 6dfe2f0..d1ee0b3 100644 --- a/helpers/files.php +++ b/helpers/files.php @@ -4,12 +4,12 @@ error_reporting(E_ALL); function foldersize($path){ - $sizestr = shell_exec('du -sh ' . "$path" . '/ | awk \'{print $1} \''); + $sizestr = shell_exec('du -sh "' . $path . '/" | awk \'{print $1} \''); return $sizestr; } function listingsize($path){ - $sizestr = shell_exec('du -h ' . "$path" . ' | awk \'{print $1}\''); + $sizestr = shell_exec('du -h "' . $path . '" | awk \'{print $1}\''); return $sizestr; } ?> diff --git a/listing.php b/listing.php index b1e6ab4..7b29afb 100644 --- a/listing.php +++ b/listing.php @@ -84,7 +84,6 @@
$currentfile){ - echo "