]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix: Cities with spaces were truncated
authoreldy <>
Sat, 15 Jan 2005 01:07:29 +0000 (01:07 +0000)
committereldy <>
Sat, 15 Jan 2005 01:07:29 +0000 (01:07 +0000)
wwwroot/cgi-bin/plugins/geoip_city_maxmind.pm

index 196406ecf6883c6f5cba548e7aa5f364b6451d34..e94a34f62cb143b68790281fa45b4c1a978fdb74 100755 (executable)
@@ -220,7 +220,8 @@ sub AddHTMLGraph_geoip_city_maxmind {
 #        print "</tr>\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; }