Re: Bug in validate

From: Date: Tue, 11 Jun 2002 21:58:15 +0000
Subject: Re: Bug in validate
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6933@lists.php.net to get a copy of this message
On Tue, 11 Jun 2002 23:48:02 +0200 LIMBOURG Arnaud <arnaud.limbourg@cegetel.fr> wrote: > 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 ;) Not a bug. spaces are not alpha add VAL_SPACE. hth pa

« previous php.pear.dev (#6933) next »