diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-05-08 10:54:54 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-05-08 10:54:54 +0200 |
commit | 4659927d7a1f2fdb72fc8ea3d34e5f9cd5e7f497 (patch) | |
tree | 353c3e313683e4ec909c4dcb8f8ca54aa89cac07 /lib/private/helper.php | |
parent | 15d134124bde5fa8693c640a3db000a9bc47d51f (diff) | |
download | nextcloud-server-4659927d7a1f2fdb72fc8ea3d34e5f9cd5e7f497.tar.gz nextcloud-server-4659927d7a1f2fdb72fc8ea3d34e5f9cd5e7f497.zip |
Pure numbers are returned as bytes right away
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r-- | lib/private/helper.php | 3 |
1 files changed, 3 insertions, 0 deletions
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, |