Bug in validate
| From: | LIMBOURG Arnaud | Date: | Tue, 11 Jun 2002 21:48:02 +0000 |
| Subject: | Bug in validate | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-6932@lists.php.net to get a copy of this message | ||
Hello,
There is a bug in the validate class in the string function.
White spaces fuck everythnig up
Validate::string($myuvar, VAL_NUM . VAL_ALPHA, 4, 32)
1248toto is true
1248 toto is false
I'm not that strong in regexp but as far i saw in the source the preg
doesn't take into account spaces
I can't come up with any fix, i'm too tired for that ;)
Cu
Arnaud Limbourg