diff -r 2251fb41dbc7 -r 1e110b03ae96 web/lib/Zend/Mime.php --- a/web/lib/Zend/Mime.php Sun Apr 21 10:07:03 2013 +0200 +++ b/web/lib/Zend/Mime.php Sun Apr 21 21:54:24 2013 +0200 @@ -14,9 +14,9 @@ * * @category Zend * @package Zend_Mime - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License - * @version $Id: Mime.php 20096 2010-01-06 02:05:09Z bkarwin $ + * @version $Id: Mime.php 24953 2012-06-13 19:09:58Z rob $ */ @@ -25,7 +25,7 @@ * * @category Zend * @package Zend_Mime - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ class Zend_Mime @@ -130,7 +130,7 @@ $str = self::_encodeQuotedPrintable($str); // Split encoded text into separate lines - while ($str) { + while(strlen($str) > 0) { $ptr = strlen($str); if ($ptr > $lineLength) { $ptr = $lineLength; @@ -194,7 +194,7 @@ $str = self::_encodeQuotedPrintable($str); // Mail-Header required chars have to be encoded also: - $str = str_replace(array('?', ' ', '_'), array('=3F', '=20', '=5F'), $str); + $str = str_replace(array('?', ' ', '_', ','), array('=3F', '=20', '=5F', '=2C'), $str); // initialize first line, we need it anyways $lines = array(0 => "");