ZF-12259: Zend_Validate_Alnum allows improper strings

Description

Bug introduced by fixing http://framework.zend.com/issues/browse/ZF-7475

Zend_Validate_Alnum (correctly) disallows strings like: - "-1234" - "@1234" but it (incorrectly) allows: - "+1234" - /+[0-9]+/

Suggested solution (for both issues, but not tested for the first one):

public function isValid($value) { ... $this->_setValue($value); settype($value, 'string'); ... if ($value !== self::$_filter->filter($value)) { ... } ... }

Comments

No comments to display