git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3602
7612ce4b-ef26-0410-bec9-
ea0150e637f0
foreach ($read as $read_part) {
//unfold multi-line headers
foreach ($read as $read_part) {
//unfold multi-line headers
- while ($prevline && strspn($read_part, "\t ") > 0) {
- $read_part = substr($prevline, 0, -2) . ' ' . ltrim($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) {
$prevline = $read_part;
if ($read_part{0} == '*') {
if ($internaldate) {