From 0185d21230eba45abf2b4cc6320ea1be6452ebcf Mon Sep 17 00:00:00 2001 From: tokul Date: Tue, 30 Dec 2003 15:30:11 +0000 Subject: [PATCH] fixing multiline headers. space or tab should not be removed. tab is replaced by space, because it is later used split decoded string into chunks git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6339 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/mime/Rfc822Header.class.php | 2 +- functions/imap_messages.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/class/mime/Rfc822Header.class.php b/class/mime/Rfc822Header.class.php index d459fb59..9a63be0a 100644 --- a/class/mime/Rfc822Header.class.php +++ b/class/mime/Rfc822Header.class.php @@ -44,7 +44,7 @@ class Rfc822Header { $hdr = implode('', $hdr); } /* First we unfold the header */ - $hdr = trim(str_replace(array("\r\n\t", "\r\n "),array('', ''), $hdr)); + $hdr = trim(str_replace(array("\r\n\t", "\r\n "),array(' ', ' '), $hdr)); /* Now we can make a new header array with */ /* each element representing a headerline */ diff --git a/functions/imap_messages.php b/functions/imap_messages.php index bc3561d1..6aaaf8d4 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -621,7 +621,7 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list, $show_num=false) $header = parseString($read,$i); if ($header === false) break 3; /* First we unfold the header */ - $hdr = trim(str_replace(array("\r\n\t", "\r\n "),array('', ''), $header)); + $hdr = trim(str_replace(array("\r\n\t", "\r\n "),array(' ', ' '), $header)); /* Now we can make a new header array with */ /* each element representing a headerline */ $hdr = explode("\r\n" , $hdr); -- 2.25.1