From: Michael M Slusarz Date: Thu, 20 Nov 2008 23:19:57 +0000 (-0700) Subject: tweak X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0f43de6b4bf7ed71c75c15814198bcc1f1a462da;p=horde.git tweak --- diff --git a/framework/Mime/lib/Horde/Mime/Headers.php b/framework/Mime/lib/Horde/Mime/Headers.php index b8df2c8e4..dabe879ff 100644 --- a/framework/Mime/lib/Horde/Mime/Headers.php +++ b/framework/Mime/lib/Horde/Mime/Headers.php @@ -474,12 +474,12 @@ class Horde_Mime_Headers $line = ''; $eollength = strlen($eol); $length = 1000 - $eollength; - $paramcount = count($params); + $paramcount = count($params) - 1; reset($params); while (list($count, $val) = each($params)) { /* If longer than RFC allows, then simply chop off the excess. */ - $moreparams = (($count + 1) != $paramcount); + $moreparams = ($count != $paramcount); $maxlength = $length - (!empty($line) ? 1 : 0) - (($moreparams) ? 1 : 0); if (strlen($val) > $maxlength) { $val = substr($val, 0, $maxlength);