There is a mistake in MyBB 1.2.4 patch:
should be
If possible it should be:
Thank you for the patch MyBB Group,
$ip = $db->escape_string(preg_replace("#([^.0-9 ]*)#", $ip, ""));
should be
$ip = $db->escape_string(preg_replace("#([^\.0-9 ]*)#", "", $ip));
If possible it should be:
$ip = preg_replace("#([^\.0-9 ]+)#", "", $ip);
$ip = $db->escape_string(preg_replace("#([\.]{2,})#",'.', $ip ));
Thank you for the patch MyBB Group,