Bug #17814 [Opn->Csd]: isRevoked flag not set

From: Date: Wed, 25 Aug 2010 13:53:20 +0000
Subject: Bug #17814 [Opn->Csd]: isRevoked flag not set
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-4673@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=17814&edit=1 ID: 17814 Updated by: mike@silverorange.com Reported By: alec at alec dot pl Summary: isRevoked flag not set -Status: Open +Status: Closed Type: Bug Package: Crypt_GPG Package Version: SVN PHP Version: Irrelevant -Assigned To: +Assigned To: gauthierm Roadmap Versions: New Comment: -Status: Open +Status: Closed -Assigned To: +Assigned To: gauthierm This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Patch committed in revision 302770. http://svn.php.net/viewvc?view=revision&revision=302770 Previous Comments: ------------------------------------------------------------------------ [2010-08-25 13:46:43] gauthierm isRevoked was added to The Crypt_GPG_SubKey in revision 302768. http://svn.php.net/viewvc?view=revision&revision=302768 ------------------------------------------------------------------------ [2010-08-25 13:03:56] alec Description: ------------ isRevoked flag for user ID is never set. Simple patch: --- GPG.old 2010-08-19 22:18:05.000000000 +0200 +++ GPG.php 2010-08-25 14:52:20.012011938 +0200 @@ -814,8 +832,13 @@ } elseif ($lineExp[0] == 'uid') { $string = stripcslashes($lineExp[9]); // as per documentation - $key->addUserId(Crypt_GPG_UserId::parse($string)); + $user = new Crypt_GPG_UserId($string); + + if ($lineExp[1] == 'r') { + $user->setRevoked(true); + } + $key->addUserId($user); } } BTW, it would be nice to have isRevoked flag in Crypt_GPG_SubKey. ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=17814&edit=1

« previous php.pear.bugs (#4673) next »