1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2025-01-31 20:11:38 +01:00

Webklex/php-imap: Boundary parsing fixed and improved to support more formats

This commit is contained in:
FreeScout 2025-01-19 22:56:27 -08:00
parent 3208a8c1d9
commit d2b7a87bbb

View File

@ -138,6 +138,11 @@ class Structure {
$final_parts = [];
//foreach($base_parts as $ctx) {
// https://github.com/Webklex/php-imap/commit/0a9b263eb4e29c2822cf7d68bec27a9af33ced2f
if (strstr($context, '--'.$boundary)) {
$boundary = '--'.$boundary;
}
$boundary_len = strlen($boundary);
$last_pos = 0;
$positions = [];