zendframework/zf2 — pull request #1642 by kokx (2012-06-27 22:59:00+00:00)
Title: Made the messages in Zend\Validator more discreet.

The Zend\Validator messages often put the inputted value in the messages. I don't think that that is necessary in most cases and often it actually stands of the way of some things.

For example, if you have a password field, you don't want your password to be exposed to anyone standing behind you if your password doesn't conform to the StringLenght validator. In most use cases, the value in the message doesn't add much value either, because it usually will be displayed next to the given value.

Of course, the '%value%' replacement will still be done if anyone does actually wants this in the message. Also, I have left it in the File validators, because in there it means the File name, which actually is usefull in most cases.