From 3d38526bc89ef235bd8a70a95ba4757890f0ce0c Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Sat, 23 Apr 2022 03:29:21 +0800 Subject: [PATCH] trim ip , --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index d5e5148f..a0c03ec6 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1736,7 +1736,7 @@ function get_ip_location($ip) * @since 1.7.4 */ $arr = get_ip_location_from_geoip($ip); - $result = array($arr["name"], $lang_functions['text_user_ip'] . ": " . $ip); + $result = array($arr["name"], $lang_functions['text_user_ip'] . ": " . trim($ip, ',')); return $locations[$ip] = $result; $cacheKey = "location_$ip";