X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;ds=sidebyside;f=keylookup%2Fkeylookup;h=115578015469f31b7219fa000d7724cd05fdb2d5;hb=0e3dee98b2049ac8e5e57fecfcd1bdeb40acbb46;hp=4c3ccefbfe4318647162758510c36e3ed2d486e0;hpb=09b910f3487e2e5438db1bee5745c902da13e6f3;p=pgp-tools.git diff --git a/keylookup/keylookup b/keylookup/keylookup index 4c3ccef..1155780 100755 --- a/keylookup/keylookup +++ b/keylookup/keylookup @@ -1,7 +1,7 @@ #!/usr/bin/perl -w -# (c) 2000, 2002 Christian Kurz , -# Peter Palfrader +# Copyright (c) 2000, 2002 Christian Kurz , +# Copyright (c) 2000, 2002, 2005 Peter Palfrader # # $Id$ # @@ -19,8 +19,10 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # -# Keylookup homepage: http://www.palfrader.org/keylookup/ -# CVS, BTS: http://savannah.gnu.org/projects/keylookup/ +# Keylookup is part of pgp-tools: +# http://pgp-tools.alioth.debian.org/ +# svn://svn.debian.org/pgp-tools/trunk/ +# http://svn.debian.org/wsvn/pgp-tools/trunk/ delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV', 'PATH'}; $|=1; # Always flush buffers @@ -93,7 +95,7 @@ sub getHits($) { push @ops, '--with-colons'; push @ops, '--fixed-list-mode'; push @ops, '--search'; - push @ops, $options->{'search'}; + push @ops, @{$options->{'search'}}; exec(@ops); die ("Cannot exec GnuPG: $!\n"); }; @@ -343,10 +345,7 @@ sub version { ## Take all additional arguments to the program as a search target, ## escape the string for use in URLs. - $options{'search'} = join ' ', @ARGV; - $options{'search'} =~ s/ ( [^A-Za-z0-9] ) - / '%' . unpack("H2", $1) - /xeg; + $options{'search'} = \@ARGV; my $keys = getHits( \%options ); my $keyids;