Re: Validate_be
| From: | Amir Mohammad Saied | Date: | Sun, 26 Nov 2006 14:51:57 +0000 |
| Subject: | Re: Validate_be | ||
| References: | 1 2 | Groups: | php.pear.dev php.pear.dev |
| Request: | Send a blank email to pear-dev+get-45019@lists.php.net to get a copy of this message | ||
Hi,
Well, as Arnaud has told already, that's not a good practice for a Lib
that's supposed to do validating stuff, it's up to developer to pass
the arguments trimmed or not.
-- Amir Mohammad
On Fri, 24 Nov 2006 06:22:18 +0100
moosh.be@gmail.com (Christophe Gesché) wrote:
> I can now restart development Validate BE.
>
> I see that I trim values before try to validate.
>
> But I'm not sure that's a good idea.
>
> If the value contain trainling space, developper can decide if it's good
> or not. an trim it self if needed.
>
> no ?
>
> -- Moosh -- claroline.net -- php.net === Php & Pear & MySQL ===
> http://moosh.et.son.brol.be/ (fr) 11-2006 Forum PHP
> http://www.afup.org/
> (fr) 02-2007 FOSDEM 07 http://www.fosdem.org/ (en)