do not add spaces to references header (#1634294),
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 18 Jan 2007 16:11:28 +0000 (16:11 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 18 Jan 2007 16:11:28 +0000 (16:11 +0000)
thanks SOCS

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12143 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/deliver/Deliver.class.php

index 8188bac..31a674b 100644 (file)
@@ -555,7 +555,9 @@ class Deliver {
                 $aRefs = explode(' ',$sRefs);
                 $sLine = 'References:';
                 foreach ($aRefs as $sReference) {
-                    if (strlen($sLine)+strlen($sReference) >76) {
+                    if ( trim($sReference) == '' ) {
+                         /* Don't add spaces. */
+                    } elseif (strlen($sLine)+strlen($sReference) >76) {
                         $hdr_s .= $sLine;
                         $sLine = $rn . '    ' . $sReference;
                     } else {