Pure numbers are returned as bytes right away

This commit is contained in:
Thomas Müller 2015-05-08 10:54:54 +02:00
parent 15d134124b
commit 4659927d7a
1 changed files with 3 additions and 0 deletions

View File

@ -394,6 +394,9 @@ class OC_Helper {
*/
public static function computerFileSize($str) {
$str = strtolower($str);
if (is_numeric($str)) {
return $str;
}
$bytes_array = array(
'b' => 1,