alecpl
2009-09-01 172552a9eda168c87c4f4a0bf3b2fdf6ddf021b0
- fix displaying attachments with backslash in filename (#1486076)


1 files modified
4 ■■■■ changed files
program/lib/imap.inc 4 ●●●● patch | view | raw | blame | history
program/lib/imap.inc
@@ -1501,7 +1501,7 @@
                if($bodystr) {
                    while (!preg_match('/ BODYSTRUCTURE (.*) BODY\[HEADER.FIELDS/s', $line, $m)) {
                        $line2 = iil_ReadLine($fp, 1024);
                        $line .= iil_MultLine($fp, $line2);
                        $line .= iil_MultLine($fp, $line2, true);
                    }
                    $result[$id]->body_structure = $m[1];
                }
@@ -2479,7 +2479,7 @@
        if (iil_PutLine($fp, $key . ($is_uid ? ' UID' : '') ." FETCH $id (BODYSTRUCTURE)")) {
            do {
                $line = iil_ReadLine($fp, 5000);
                $line = iil_MultLine($fp, $line);
                $line = iil_MultLine($fp, $line, true);
                if (!preg_match("/^$key/", $line))
                    $result .= $line;
            } while (!iil_StartsWith($line, $key, true));