From: eldy <> Date: Sat, 15 Jan 2005 01:07:29 +0000 (+0000) Subject: Fix: Cities with spaces were truncated X-Git-Tag: AWSTATS_6_3_RELEASE~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fa73cd1b546e4088e6fb76997b27f04e31cf940;p=thirdparty%2FAWStats.git Fix: Cities with spaces were truncated --- diff --git a/wwwroot/cgi-bin/plugins/geoip_city_maxmind.pm b/wwwroot/cgi-bin/plugins/geoip_city_maxmind.pm index 196406ec..e94a34f6 100755 --- a/wwwroot/cgi-bin/plugins/geoip_city_maxmind.pm +++ b/wwwroot/cgi-bin/plugins/geoip_city_maxmind.pm @@ -220,7 +220,8 @@ sub AddHTMLGraph_geoip_city_maxmind { # print "\n"; foreach my $key (@keylist) { if ($key eq 'unknown') { next; } - my ($countrycode,$city)=split('_',$key); + my ($countrycode,$city)=split('_',$key,2); + $city=~tr/_/ /; # if ($countrycode ne $country) { next; } my $p_p; my $p_h; if ($TotalPages) { $p_p=int($_city_p{$key}/$TotalPages*1000)/10; }