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