From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH v2] tor.cgi: fix calling Perl location module functions
Date: Sun, 11 Oct 2020 18:42:26 +0100 [thread overview]
Message-ID: <B9ED121A-1866-4A2C-9701-FB27A10D325F@ipfire.org> (raw)
In-Reply-To: <af8cbd254098b296f3e21f5ba99d7e3c8ed7ebf2.camel@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 1505 bytes --]
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(a)ipfire.org> wrote:
>
> Hello Peter,
>
> very good found and thanks for the patch.
>
> Acked-By: Stefan Schantl <stefan.schantl(a)ipfire.org>
>
>> The second version of this patch avoids re-defining $db_handle.
>>
>> Fixes: #12492
>>
>> Cc: Stefan Schantl <stefan.schantl(a)ipfire.org
>> Signed-off-by: Peter Müller <peter.mueller(a)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'";
>>
>
prev parent reply other threads:[~2020-10-11 17:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-09 19:20 Peter Müller
2020-10-10 11:46 ` Michael Tremer
2020-10-11 12:18 ` Adolf Belka
2020-10-11 17:39 ` Stefan Schantl
2020-10-11 17:42 ` Michael Tremer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B9ED121A-1866-4A2C-9701-FB27A10D325F@ipfire.org \
--to=michael.tremer@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox