diff -r 2251fb41dbc7 -r 1e110b03ae96 web/lib/Zend/Validate/Abstract.php --- a/web/lib/Zend/Validate/Abstract.php Sun Apr 21 10:07:03 2013 +0200 +++ b/web/lib/Zend/Validate/Abstract.php Sun Apr 21 21:54:24 2013 +0200 @@ -14,9 +14,9 @@ * * @category Zend * @package Zend_Validate - * @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: Abstract.php 22472 2010-06-20 07:36:16Z thomas $ + * @version $Id: Abstract.php 25105 2012-11-07 20:33:22Z rob $ */ /** @@ -27,7 +27,7 @@ /** * @category Zend * @package Zend_Validate - * @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 */ abstract class Zend_Validate_Abstract implements Zend_Validate_Interface @@ -230,16 +230,20 @@ $value = $value->__toString(); } } else { - $value = (string)$value; + $value = implode((array) $value); } if ($this->getObscureValue()) { $value = str_repeat('*', strlen($value)); } - $message = str_replace('%value%', (string) $value, $message); + $message = str_replace('%value%', $value, $message); foreach ($this->_messageVariables as $ident => $property) { - $message = str_replace("%$ident%", (string) $this->$property, $message); + $message = str_replace( + "%$ident%", + implode(' ', (array) $this->$property), + $message + ); } $length = self::getMessageLength();