From 192a8266e2571a324a793fa512a9c852661ae25b Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 4 Jan 2015 14:07:06 +0100 Subject: [PATCH] geoip-block.cgi: Requires firewall-lib.pl. --- config/firewall/firewall-lib.pl | 4 ++-- html/cgi-bin/geoip-block.cgi | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/firewall/firewall-lib.pl b/config/firewall/firewall-lib.pl index 3fa702f354..f73d84f296 100755 --- a/config/firewall/firewall-lib.pl +++ b/config/firewall/firewall-lib.pl @@ -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. diff --git a/html/cgi-bin/geoip-block.cgi b/html/cgi-bin/geoip-block.cgi index f973351cb6..6a7d1d96ef 100644 --- a/html/cgi-bin/geoip-block.cgi +++ b/html/cgi-bin/geoip-block.cgi @@ -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"; -- 2.39.5