mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
Fix file sizes with decimal like "5.0GB" were parsed as 0GB
This commit is contained in:
parent
d38681279a
commit
448a575886
@ -1130,7 +1130,7 @@ class Vfs extends Vfs\Base
|
|||||||
$val = trim($_val);
|
$val = trim($_val);
|
||||||
|
|
||||||
$matches = null;
|
$matches = null;
|
||||||
preg_match('#([0-9]+)[\s]*([a-z]+)#i', $val, $matches);
|
preg_match('#([0-9.]+)[\s]*([a-z]+)#i', $val, $matches);
|
||||||
|
|
||||||
$last = '';
|
$last = '';
|
||||||
if(isset($matches[2])){
|
if(isset($matches[2])){
|
||||||
|
Loading…
Reference in New Issue
Block a user