trim ip ,

This commit is contained in:
xiaomlove
2022-04-23 03:29:21 +08:00
parent d8f6b0d464
commit 3d38526bc8

View File

@@ -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";