|XP is just a number
Re: Mulitple constraints for Data::FormValidatorby Anonymous Monk
|on Apr 17, 2004 at 00:45 UTC
Try to trick it with dependencies.
The idea being to use a dummy constraint to do the untainting. This assumes that the module will perform the userid_untaint first because it's required, that will re-set the userid parameter with an untainted version, then dependencies will force the userid to be required also, then the module will run the userid validation which then performs the original function on the now untainted value.
I have no idea if this will actually work.
Why can't you untaint and check your database at the same time?