From: indiri69 Date: Tue, 5 Nov 2002 16:33:50 +0000 (+0000) Subject: Make header checking case insensitive X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1dbc5afbff1677293ba9b1dbb6e8821f5da109fd;p=squirrelmail.git Make header checking case insensitive git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4099 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/imap_messages.php b/functions/imap_messages.php index a6a6d823..29cc0eeb 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -525,9 +525,9 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list) { foreach ($read as $read_part) { //unfold multi-line headers - if ($prevline && strpos($read_part, "\t ") === true) { - $read_part = substr($prevline, 0, -2) . preg_replace('/(\t\s+)/',' ',$read_part); - } + if ($prevline && strpos($read_part, "\t ") === true) { + $read_part = substr($prevline, 0, -2) . preg_replace('/(\t\s+)/',' ',$read_part); + } $prevline = $read_part; if ($read_part{0} == '*') { if ($internaldate) { @@ -562,7 +562,7 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list) { $unique_id = $reg[1]; } } else { - $firstchar = $read_part{0}; + $firstchar = strtoupper($read_part{0}); if ($firstchar == 'T') { $regpattern = $patterns[0]; $id = 1;