- Fix displaying of big maximum upload filesize (#1485889)
| | |
| | | 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) |
| | |
| | | * 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)) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | return intval($bytes); |
| | | return floatval($bytes); |
| | | } |
| | | |
| | | /** |