flourishlib / flourish-classes

The class files for Flourish
http://flourishlib.com
182 stars 78 forks source link

Update fMailbox.php handling 5.6+ Security #218

Open BrendonKoz opened 9 years ago

BrendonKoz commented 9 years ago

As of PHP version 5.6 there is much stricter security checking being done on various levels. Flourish's excellent Mailbox class unfortunately isn't up-to-date enough to handle the new restrictions by default. This fix is simply a fallback to allow for its previous level of functionality. It bypasses the new security implementations that PHP 5.6 brings to the table, but users of Gmail's mail server, or users of shared hosting will be able to continue to use this library with the class as expected. (It has to do with domain mismatch.)

BrendonKoz commented 9 years ago

Also fixed an issue with Exchange server's OWA attachments. See Issue #220 for further explanation.

BrendonKoz commented 9 years ago

Added the ability to recover, if provided, the filename of "related" attachment types in the case of plaintext emails (or programmatic systems) needing access to the downloaded file(s) and its type (file extensions are super handy here). This was the only attachment type that did not include the filename value in its data array.

See commit 9d29ac0201db7b07b8a21ce8e68fe087d1ba651a

BrendonKoz commented 9 years ago

Fixed an issue where reference headers were not being split from a string to an array properly.

See commit 4df21b7b9e40a4ff0993a1fe6e500846e4bd15bc

Fixes #222