On Wednesday 20 February 2008 16:13, Philippe Teuwen wrote:
> When working with e.g. the keyserver onak 0.3.5-1 available in Debian,
> keylookup fails importing any key because onak returns 40-nibble keyids
> instead of the more usual 8-nibble keyids.
> Note that other keyservers could return a 16-nibble keyid as it's also
> a valid value for a keyid.

> We could build a more complex regex such as
> /^((([a-zA-Z0-9]{24})?[a-zA-Z0-9]{8})?[a-zA-Z0-9]{8})$/
> to enforce 8, 16 & 40-nibble keyids but let's things remain readable ;-)

Thanks! I've now applied this to the package. I've picked the latter regex, 
because I believe that if we can easily detect brokenness (wrong length 
keyids), we should cope with that.


Thijs

Attachment: pgpvxPvopwp6T.pgp
Description: PGP signature

Reply via email to