Merge pull request from adecaneda/adecaneda-patch-1

Typo in variable $p->encrypted_data
This commit is contained in:
Stephen Paul Weber 2015-07-31 19:28:07 -05:00
commit 4fe3c5db72

View File

@ -181,10 +181,10 @@ class OpenPGP_Crypt_RSA {
foreach($message as $p) { foreach($message as $p) {
if($p instanceof OpenPGP_AsymmetricSessionKeyPacket) { if($p instanceof OpenPGP_AsymmetricSessionKeyPacket) {
if($keys instanceof Crypt_RSA) { if($keys instanceof Crypt_RSA) {
$sk = self::try_decrypt_session($keys, substr($p->encyrpted_data, 2)); $sk = self::try_decrypt_session($keys, substr($p->encrypted_data, 2));
} else if(strlen(str_replace('0', '', $p->keyid)) < 1) { } else if(strlen(str_replace('0', '', $p->keyid)) < 1) {
foreach($keys->key as $k) { foreach($keys->key as $k) {
$sk = self::try_decrypt_session(self::convert_private_key($k), substr($p->encyrpted_data, 2)); $sk = self::try_decrypt_session(self::convert_private_key($k), substr($p->encrypted_data, 2));
if($sk) break; if($sk) break;
} }
} else { } else {