From cc201b463e7d240bd4656795e5a3f0af14fb05c8 Mon Sep 17 00:00:00 2001 From: kink Date: Thu, 18 Jan 2007 16:11:28 +0000 Subject: [PATCH] do not add spaces to references header (#1634294), 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/class/deliver/Deliver.class.php b/class/deliver/Deliver.class.php index 8188baca..31a674b3 100644 --- a/class/deliver/Deliver.class.php +++ b/class/deliver/Deliver.class.php @@ -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 { -- 2.25.1