From 4659927d7a1f2fdb72fc8ea3d34e5f9cd5e7f497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Fri, 8 May 2015 10:54:54 +0200 Subject: [PATCH] Pure numbers are returned as bytes right away --- lib/private/helper.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/private/helper.php b/lib/private/helper.php index ec798817840..981447c213b 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -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,