--- a/web/lib/Zend/Validate/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -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();