ZF-12259: Zend_Validate_Alnum allows improper strings

Issue Type: Bug Created: 2012-05-28T17:02:43.000+0000 Last Updated: 2012-05-28T17:07:04.000+0000 Status: Open Fix version(s): Reporter: Tomasz Wasilczyk (tomkiewicz) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments:


Bug introduced by fixing

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)) { ... } ... }


No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.