aboutsummaryrefslogtreecommitdiffstats
path: root/community/zabbix/ZBX-11549.patch
blob: bff252b847e220757ad8360ca593c129fe62fe81 (plain)
1
2
3
4
5
6
7
8
9
10
--- 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':