Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.9

Request #21084 Redundant --list-keys when deleting/exporting a key
Submitted: 2016-06-19 07:19 UTC
From: alec Assigned:
Status: Open Package: Crypt_GPG (version 1.4.1)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2016-06-19 07:19 UTC] alec (Aleksander Machniak)
Description: ------------ We call getFingerprint() when deleting/exporting a key. This is redundant if the provided key id is already know. I propose, in Crypt_GPG::getFingerprint(), to skip the search if provided argument is full key id, i.e.: if (preg_match('/^[0-9A-F]{40}$/', preg_replace('/[ :]/', '', $keyId))) { return $keyId; }

Comments