public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Adolf Belka <ahb.ipfire@gmail.com>
To: development@lists.ipfire.org
Subject: Re: [PATCH v2] tor.cgi: fix calling Perl location module functions
Date: Sun, 11 Oct 2020 14:18:53 +0200	[thread overview]
Message-ID: <2ce740ef-8a85-5c28-1e0e-354920986fae@gmail.com> (raw)
In-Reply-To: <64EE2BF8-BB1E-452A-83AC-2B9ACC3A796C@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 1697 bytes --]

Hi Michael,

I installed tor and confirmed that the last part of the tor page was missing.
I then patched the tor.cgi file with Peter's patch and then the whole tor page was now being shown. I was able to enable tor and save and tor was then shown as running.

I can confirm that the patch works.

Regards,
Adolf.

On 10/10/2020 13:46, Michael Tremer wrote:
> Could anyone please test this and confirm that it works?
> 
>> On 9 Oct 2020, at 20:20, Peter Müller <peter.mueller(a)ipfire.org> wrote:
>>
>> 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'";
>>
>> -- 
>> 2.26.2
> 

  reply	other threads:[~2020-10-11 12:18 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 [this message]
2020-10-11 17:39 ` Stefan Schantl
2020-10-11 17:42   ` Michael Tremer

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=2ce740ef-8a85-5c28-1e0e-354920986fae@gmail.com \
    --to=ahb.ipfire@gmail.com \
    --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