Skip to content

Commit

Permalink
Fix to upstream code
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Apr 29, 2015
1 parent f8e5957 commit cd3ba90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions framework/Pgp/bundle/CHANGED
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ List of changes from upstream sources:
(OpenPGP_SymmetricSessionKeyPacket#__construct()).
Fix determining message structure when attempting to verify User ID
signatures (OpenPGP_Message#signatures()).
Fix ignoring a 0x30 byte (OpenPGP_Packet#read_byte()).

- vendor/singpolyma/openpgp-php/lib/openpgp_crypt_rsa.php

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,10 @@ function read_unpacked($count, $format) {
}

function read_byte() {
return ($bytes = $this->read_bytes()) ? $bytes[0] : NULL;
/* Begin Horde change */
//return ($bytes = $this->read_bytes()) ? $bytes[0] : NULL;
return (($bytes = $this->read_bytes()) !== false) ? $bytes[0] : NULL;
/* End Horde change */
}

function read_bytes($count = 1) {
Expand Down

0 comments on commit cd3ba90

Please sign in to comment.