]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
tor.cgi: fix location function call again
authorPeter Müller <peter.mueller@ipfire.org>
Tue, 1 Dec 2020 21:45:43 +0000 (21:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 2 Dec 2020 14:56:34 +0000 (14:56 +0000)
This line was accidentially messed up while merging two patchsets
together, causing tor.cgi to crash with an HTTP error 500 in testing.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/tor.cgi

index fe91ed399b2b3c0b091d0f68b7afb17f62125089..ea340b6121cfdde5c8fc0d29ce7a5ebfb014167c 100644 (file)
@@ -340,7 +340,7 @@ END
                        @guard_countries = split(/\|/, $settings{'TOR_GUARD_COUNTRY'});
                }
 
-               my @country_codes = &Location::database_countries($db_handle);
+               my @country_codes = &Location::Functions::get_locations("no_special_locations");
                foreach my $country_code (@country_codes) {
                        # Convert country code into upper case format.
                        $country_code = uc($country_code);