You should add the trim => true option to your form field. See here 
symfony.com/doc/current/reference/forms/types/text.html

On Friday, March 2, 2012 10:44:12 AM UTC+8, EricZhang wrote:
>
> Dear symphony's devs: 
>
>   I am symphony2's user。 
>   Using a validation's NotBlankValidator, 
>   input all blank space , validation is pass. 
>   For example: 
>       Input : "       " 
>       Validation.yml:  - NotBlank: { message: 'error' } 
>       Result: valitaion pass 
>
>   How do check all blank space to using validator? 
>
> Greetings! 
>
> EricZhang 
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to