Revision: 12143
http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=12143&view=rev
Author: kink
Date: 2007-01-18 08:11:28 -0800 (Thu, 18 Jan 2007)
Log Message:
-----------
do not add spaces to references header (#1634294),
thanks SOCS
Modified Paths:
--------------
trunk/squirrelmail/class/deliver/Deliver.class.php
Modified: trunk/squirrelmail/class/deliver/Deliver.class.php
===================================================================
--- trunk/squirrelmail/class/deliver/Deliver.class.php 2007-01-18 15:19:38 UTC
(rev 12142)
+++ trunk/squirrelmail/class/deliver/Deliver.class.php 2007-01-18 16:11:28 UTC
(rev 12143)
@@ -555,7 +555,9 @@
$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 {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
|