]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
geoip-block.cgi: Requires firewall-lib.pl.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 4 Jan 2015 13:07:06 +0000 (14:07 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 4 Jan 2015 13:07:06 +0000 (14:07 +0100)
config/firewall/firewall-lib.pl
html/cgi-bin/geoip-block.cgi

index 3fa702f354e32c14325e077f4c66f67bc4e7a488..f73d84f296f73fc090ec2fd7bb2364273906402f 100755 (executable)
@@ -575,10 +575,10 @@ sub get_geoip_locations() {
                chomp($location);
 
                # Cut-off file extension.
-               my ($contry_code, $extension) = split(/\./, $location);
+               my ($country_code, $extension) = split(/\./, $location);
 
                # Add country code to array.
-               push(@contry_codes, $contry_code);
+               push(@country_codes, $country_code);
        }
 
        # Return final array.
index f973351cb65148371f4dc5096bae53895bf8c009..6a7d1d96efe92deda9ccc6453cde89c1002d57e3 100644 (file)
@@ -27,6 +27,7 @@ use strict;
 require '/var/ipfire/general-functions.pl';
 require "${General::swroot}/lang.pl";
 require "${General::swroot}/header.pl";
+require "/usr/lib/firewall/firewall-lib.pl";
 
 # Directory which contains flag icons.
 my $flagdir = "/srv/web/ipfire/html/images/flags";