mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
trim ip ,
This commit is contained in:
@@ -1736,7 +1736,7 @@ function get_ip_location($ip)
|
|||||||
* @since 1.7.4
|
* @since 1.7.4
|
||||||
*/
|
*/
|
||||||
$arr = get_ip_location_from_geoip($ip);
|
$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;
|
return $locations[$ip] = $result;
|
||||||
|
|
||||||
$cacheKey = "location_$ip";
|
$cacheKey = "location_$ip";
|
||||||
|
|||||||
Reference in New Issue
Block a user