From: weasel Date: Tue, 16 Aug 2005 15:20:48 +0000 (+0000) Subject: Quoting is gpg's job now X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=0e3dee98b2049ac8e5e57fecfcd1bdeb40acbb46;p=pgp-tools.git Quoting is gpg's job now git-svn-id: svn://svn.debian.org/pgp-tools/trunk@192 b513b33f-fedd-0310-b452-c3deb5f4c849 --- diff --git a/keylookup/keylookup b/keylookup/keylookup index 4c097a9..1155780 100755 --- a/keylookup/keylookup +++ b/keylookup/keylookup @@ -95,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"); }; @@ -345,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;