From dc3d13a7d6381644d377a94717392eb05f2139ca Mon Sep 17 00:00:00 2001 From: indiri69 Date: Tue, 23 Dec 2003 01:17:13 +0000 Subject: [PATCH] Whoops. Forgot the other part of it. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6309 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index a65e5619..f7c3379d 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -660,13 +660,6 @@ function decodeHeader ($string, $utfencode=true,$htmlsave=true) { $chunk = $res[5]; $encoded = true; } - - if (!$encoded && $htmlsave) { - $ret .= htmlspecialchars($chunk); - } else { - $ret .= $chunk; - } - if (!$encoded) { if ($htmlsave) { $ret .= ' '; @@ -674,6 +667,12 @@ function decodeHeader ($string, $utfencode=true,$htmlsave=true) { $ret .= ' '; } } + + if (!$encoded && $htmlsave) { + $ret .= htmlspecialchars($chunk); + } else { + $ret .= $chunk; + } ++$i; } /* remove the first added space */ -- 2.25.1