X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2FCGI%2FEx%2FValidate.pm;h=651b3c903e5f7ffc3ffa1e231554e52a80c2ce56;hb=a2f50b1efd2bc986617e1de5f5a0bfd8a2953b0e;hp=fbbb2c70ab648ab68e505b97434b3e5f0d663ed4;hpb=f30b8252fcf71659a2fd3b5895e009ff8e39299d;p=chaz%2Fp5-CGI-Ex diff --git a/lib/CGI/Ex/Validate.pm b/lib/CGI/Ex/Validate.pm index fbbb2c7..651b3c9 100644 --- a/lib/CGI/Ex/Validate.pm +++ b/lib/CGI/Ex/Validate.pm @@ -22,7 +22,7 @@ use vars qw($VERSION @UNSUPPORTED_BROWSERS ); -$VERSION = '2.10'; +$VERSION = '2.19'; $DEFAULT_EXT = 'val'; $QR_EXTRA = qr/^(\w+_error|as_(array|string|hash)_\w+|no_\w+)/; @@ -120,6 +120,7 @@ sub validate { push @$fields, { %{$val_hash->{$field}}, field => $field }; } } + return if ! $fields; ### Finally we have our arrayref of hashrefs that each have their 'field' key ### now lets do the validation @@ -2079,14 +2080,12 @@ javascript didn't validate correctly, the user can still submit the data. Thanks to Eamon Daly for providing bug fixes for bugs in validate.js caused by HTML::Prototype. -=head1 AUTHOR - -Paul Seamons - =head1 LICENSE This module may be distributed under the same terms as Perl itself. -=cut +=head1 AUTHOR +Paul Seamons +=cut