Sven Neuhaus via RT wrote:
Show quoted text>
> When the sub I use to test the constraint returns "1" that's the value
> that ends up in the next constraint and also in valid() in the Results
> object.
> The documentation says I have to return true or false, but I have to
> return the (untainted) value or undef it seems.
Sven,
I don't believe this a bug, although perhaps there is some documentation
that could clearer. If you want to see resolution on this, please
submit a failing Test::More style test case which illustrates the issue,
and a specific reference to the documentation that says true or false is
correct.
I believe the behavior is actually that true or false is correct when
untainting is off for the field, and returning the value is correct when
untainting is on for the field.
Mark