Hi all, I don't see a way to set the "trim" option for validators globally. Since this option defaults to false, all required form fields accept a simple " " (space) entry, which seems to defeat the purpose of a required field.
Of course I can set a minimum length, and while I'm at it, I can also set the "trim" option to true, but that is a pretty manual process accross many forms, which seems very unnecessary. I'm wondering if we could have a static "setDefaultOptions" method in the base validator, similarly to how we can set default messages. Does that make sense? Thanks, Daniel -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
