From 0e3dee98b2049ac8e5e57fecfcd1bdeb40acbb46 Mon Sep 17 00:00:00 2001 From: weasel Date: Tue, 16 Aug 2005 15:20:48 +0000 Subject: [PATCH] Quoting is gpg's job now git-svn-id: svn://svn.debian.org/pgp-tools/trunk@192 b513b33f-fedd-0310-b452-c3deb5f4c849 --- keylookup/keylookup | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; -- 2.39.5