Subject: | Parameter is not recognized as unknown if it is undefined or empty string |
Conditions:
Data::FormValidator v4.63
Steps to reproduce:
perl -MData::FormValidator -le '$r = Data::FormValidator->check({datum
=> undef}, {}); print join " ", 0+ $r->has_unknown, $r->unknown'
perl -MData::FormValidator -le '$r = Data::FormValidator->check({datum
=> ""}, {}); print join " ", 0+ $r->has_unknown, $r->unknown'
perl -MData::FormValidator -le '$r = Data::FormValidator->check({datum
=> 0}, {}); print join " ", 0+ $r->has_unknown, $r->unknown'
perl -MData::FormValidator -le '$r = Data::FormValidator->check({datum
=> 1}, {}); print join " ", 0+ $r->has_unknown, $r->unknown'
Result:
0
0
1 datum
1 datum
Expected result:
1 datum
1 datum
1 datum
1 datum