mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-09 07:17:12 +02:00
12 lines
245 B
Diff
12 lines
245 B
Diff
--- a/frontends/php/include/func.inc.php
|
|
+++ b/frontends/php/include/func.inc.php
|
|
@@ -401,6 +401,7 @@
|
|
function str2mem($val) {
|
|
$val = trim($val);
|
|
$last = strtolower(substr($val, -1));
|
|
+ $val = (int) $val;
|
|
|
|
switch ($last) {
|
|
case 'g':
|
|
|