Skip to content

Commit

Permalink
Use key ID instead of name
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Sep 17, 2021
1 parent 59cc5e6 commit 7e4742a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gnupg/send.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ $key = $keys[$in{'idx'}];
print &text('send_desc', $key->{'name'}->[0],
"<tt>$config{'keyserver'}</tt>"),"<p>\n";

$cmd = "$gpgpath --keyserver '$config{'keyserver'}' --send-key '$key->{'name'}->[0]'";
$out = `$cmd 2>&1`;
$cmd = "$gpgpath --keyserver ".quotemeta($config{'keyserver'}).
" --send-key ".quotemeta($key->{'key'});
$out = &backquote_command("$cmd 2>&1");
if ($?) {
print "<p>",&text('send_failed', "<pre>$out</pre>"),"<p>\n";
}
Expand Down

0 comments on commit 7e4742a

Please sign in to comment.