On 2004-02-16, Bodo Schulze <suppressed> wrote:
> Hi all,
>
> think I found a bug in _constraint_check_match() in
> Data::FormValidator::Results bound into C::A via
> CGI::Application::ValidateRM.
>
> This subroutine checks the return value of user defined untainting
> coderefs for false in the broad sense, not for undef. So if your field
> containts the number zero and you check it using /(\d+)/, the return
> value will be this number zero. _constraint_check_match interprets this
> return value as false, so the check fails.
>
> Hope, I didn't miss something obvious.
Thanks for the report Bodo.
This is bettter discussed on the Data::FormValidator list. I've made
a note to release update which mentions this in the docs. I know it's
not clear now. That list address is:
suppressed
It does seem like it could be a bug. Please submit a test case and/or
patch if you can.
Thanks,
Mark
--
. . . . . . . . . . . . . . . . . . . . . . . . . . .
Mark Stosberg Principal Developer
suppressed Summersault, LLC
765-939-9301 ext 202 database driven websites
. . . . . http://www.summersault.com/ . . . . . . . .
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.