[Pgp-tools-commit] r192 - trunk/keylookup

Peter Palfrader weasel at costa.debian.org
Tue Aug 16 15:20:49 UTC 2005


Author: weasel
Date: 2005-08-16 15:20:48 +0000 (Tue, 16 Aug 2005)
New Revision: 192

Modified:
   trunk/keylookup/keylookup
Log:
Quoting is gpg's job now

Modified: trunk/keylookup/keylookup
===================================================================
--- trunk/keylookup/keylookup	2005-08-16 15:11:58 UTC (rev 191)
+++ trunk/keylookup/keylookup	2005-08-16 15:20:48 UTC (rev 192)
@@ -95,7 +95,7 @@
 		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 @@
 
 	## 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;
 





More information about the Pgp-tools-commit mailing list