[Tickets #11085] PGP Encrypted e-mails are only encrypted with the senders public key
bugs at horde.org
bugs at horde.org
Sun Mar 18 17:39:40 UTC 2012
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/11085
------------------------------------------------------------------------------
Ticket | 11085
Created By | peter.meier+horde at immerda.ch
Summary | PGP Encrypted e-mails are only encrypted with the
| senders public key
Queue | IMP
Version | Git master
Type | Bug
State | Unconfirmed
Priority | 3. High
Milestone |
Patch | 1
Owners |
------------------------------------------------------------------------------
peter.meier+horde at immerda.ch (2012-03-18 17:39) wrote:
https://github.com/duritong/horde/commit/060d02e78824a420235e23327c5883b0ee28fcf2
All e-mails that should be encrypted got only be encrypted with
the senders public key.
This happened, because $to wasn't an array of addresses but rather
an array of AddressObjects, leading to the following warning, when
sending an encrypted e-mail:
WARN: HORDE [imp] PHP ERROR: array_flip() [<a
href='function.array-flip'>function.array-flip</a>]: Can only flip
STRING and INTEGER values! [pid 1982 on line 1352 of
"/var/www/vhosts/horde.example.com/www/imp/lib/Compose.php"]
However, this also means that all the recipients are omitted and
the e-mail is only encrypted with the senders public key.
This patch converts the address objects to e-mail addresses before
passing them to the PGP library.
More information about the bugs
mailing list