firmware: although unlikely just patch this in then

This commit is contained in:
Franco Fichtner 2021-12-22 07:57:57 +01:00
parent 234fa8ba95
commit eb786c95e8

View File

@ -137,6 +137,9 @@ class FirmwareController extends ApiControllerBase
if (preg_match('/\s*(\d+)\s*([a-z])/i', $size, $matches)) {
$factor = 1;
switch (isset($matches[2]) ? strtolower($matches[2]) : 'b') {
case 'p':
$factor *= 1024;
/* FALLTROUGH */
case 't':
$factor *= 1024;
/* FALLTROUGH */