From 6efa83c20858c506ddcf3cd605c43544ff425b7d Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 10 Mar 2010 22:28:52 -0700 Subject: [PATCH] Fix superfluous ws for some headers. --- framework/Mime/lib/Horde/Mime/Headers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Mime/lib/Horde/Mime/Headers.php b/framework/Mime/lib/Horde/Mime/Headers.php index 2bcffdef7..7e957e690 100644 --- a/framework/Mime/lib/Horde/Mime/Headers.php +++ b/framework/Mime/lib/Horde/Mime/Headers.php @@ -101,7 +101,7 @@ class Horde_Mime_Headers if (empty($options['nowrap'])) { /* Remove any existing linebreaks and wrap the line. */ $header_text = $ob['header'] . ': '; - $text = substr(wordwrap($header_text . strtr(trim($text), array("\r" => '', "\n" => '')), 76, $this->_eol . ' '), strlen($header_text)); + $text = ltrim(substr(wordwrap($header_text . strtr(trim($text), array("\r" => '', "\n" => '')), 76, $this->_eol . ' '), strlen($header_text))); } $val[$key] = $text; -- 2.11.0