Hi Stefan,
Did you see that the same problem exists for the firewall rule pages?
-Michael
On 11 Oct 2020, at 18:39, Stefan Schantl stefan.schantl@ipfire.org wrote:
Hello Peter,
very good found and thanks for the patch.
Acked-By: Stefan Schantl stefan.schantl@ipfire.org
The second version of this patch avoids re-defining $db_handle.
Fixes: #12492
Cc: Stefan Schantl <stefan.schantl@ipfire.org Signed-off-by: Peter Müller peter.mueller@ipfire.org
html/cgi-bin/tor.cgi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi index 28dec6cf0..7447bd791 100644 --- a/html/cgi-bin/tor.cgi +++ b/html/cgi-bin/tor.cgi @@ -322,14 +322,13 @@ END <select name='TOR_EXIT_COUNTRY'> <option value=''>- $Lang::tr{'tor exit country any'} -</option> END
my @country_codes = &Location::database_countries();
my @country_codes =
&Location::database_countries($db_handle); foreach my $country_code (@country_codes) { # Convert country code into upper case format. $country_code = uc($country_code);
# Get country name.
my $country_name =
&Location::Functions::get_country_name($country_code);
my $country_name =
&Location::Functions::get_full_country_name($country_code);
print "<option value='$country_code'";