Skip to content

Commit 16c7402

Browse files
authored
Fix function get_config_bytes
found error in switch, all cases returning same bytes-val
1 parent 36b246a commit 16c7402

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/php/UploadHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,9 @@ public function get_config_bytes($val) {
384384
}
385385
switch ($last) {
386386
case 'g':
387-
$val *= 1024;
387+
$val *= 1024 * 1024 * 1024;
388388
case 'm':
389-
$val *= 1024;
389+
$val *= 1024 * 1024;
390390
case 'k':
391391
$val *= 1024;
392392
}

0 commit comments

Comments
 (0)