From 376c2fcb9b0a2c439f8f865a3a4808187584681d Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Mon, 20 Dec 2010 04:13:30 -0500 Subject: [PATCH] accept trailing slashes on http-proxy --- gpgkeys_hkpms | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpgkeys_hkpms b/gpgkeys_hkpms index 9d50554..03a79f2 100755 --- a/gpgkeys_hkpms +++ b/gpgkeys_hkpms @@ -49,7 +49,7 @@ use warnings; $self->{actually_check} = 1; } elsif ($opt =~ /^http-proxy=(.*)/) { my $hp = $1; - if ($hp =~ /^(socks|http|https):\/\/($RE{net}{domain}|$RE{net}{IPv4}):([[:digit:]]+)$/) { + if ($hp =~ /^(socks|http|https):\/\/($RE{net}{domain}|$RE{net}{IPv4}):([[:digit:]]+)\/?$/) { if ('socks' eq $1) { if ( ! Module::Load::Conditional::check_install(module => 'LWP::Protocol::socks')) { $self->{logger}->log('error', "Requesting a socks proxy for hkpms, but LWP::Protocol::socks is not installed.\nThis will likely fail.\n"); -- 2.26.2