git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4994
7612ce4b-ef26-0410-bec9-
ea0150e637f0
$encoded = false;
/* if encoded words are not separated by a linear-space-white we still catch them */
$j = $i-1;
+ if ($chunk{0} === '=') { /* performance, saves an unnessecarry preg call */
while ($match = preg_match('/^(.*)=\?([^?]*)\?(Q|B)\?([^?]*)\?=(.*)$/Ui',$chunk,$res)) {
/* if the last chunk isn't an encoded string then put back the space, otherwise don't */
if ($iLastMatch !== $j) {
$chunk = $res[5];
$encoded = true;
}
+ }
if (!$encoded) {
if ($htmlsave) {
$ret .= ' ';