From 47f072523b06b8f0aa5981b593862172963a6f98 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Mon, 01 Jun 2009 12:33:51 -0400 Subject: [PATCH] - Fix displaying of big maximum upload filesize (#1485889) --- CHANGELOG | 1 + program/include/rcube_shared.inc | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 74181f5..03f7924 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ CHANGELOG RoundCube Webmail =========================== +- Fix displaying of big maximum upload filesize (#1485889) - Added possibility to invert messages selection - After move/delete from 'show' action display next message instead of messages list (#1485887) - Fixed problem with double quote at the end of folder name (#1485884) diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc index 9bbc829..9278654 100644 --- a/program/include/rcube_shared.inc +++ b/program/include/rcube_shared.inc @@ -238,12 +238,12 @@ * Parse a human readable string for a number of bytes * * @param string Input string - * @return int Number of bytes + * @return float Number of bytes */ function parse_bytes($str) { if (is_numeric($str)) - return intval($str); + return floatval($str); if (preg_match('/([0-9]+)([a-z])/i', $str, $regs)) { @@ -262,7 +262,7 @@ } } - return intval($bytes); + return floatval($bytes); } /** -- Gitblit v1.9.1