The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 4.00_02 - 2005-07-03

  • BUG FIXES
    • The preferred MIME type was not being returned by the 'file_format' constraint for file uploads. This would have only affected cases where the mime type sent by the browser differed from the one detected by DFV. Thanks to Randal Schwartz for spotting this. (RT#12744).
    • Profile re-use when constraint_regexp_map is used is now fixed (Thanks to Cees Hek).
    • The date_and_time constraint now understands this format: MMDDYYYY. (RT#12111, thanks to JMAY)
  • INTERNALS
    • Regexp::Common is now only loaded if it's needed, making a significant speed increase.
    • Several test improvements and code cleanups

Changes for version 4.00_01

  • ENHANCEMENTS
    • The constraints interface has been overhauled to be more intuitive to use with parameterized constraints. This included added new two new profile keys: 'constraint_methods' and 'constraint_method_regexp_map'. All of the old syntax is still supported, but de-emphasized in the documentation. See RELEASE_NOTES for details.
    • A new method has been added to help building custom constraints: "set_current_constraint_name('foo')" will set the name of a constraint from within itself. An alias named 'name_this()' is provided for brevity. See the section on "Writing your own constraints" in DFV::Constraints for details.
    • success() method added to Results object. This is an easy way to check that there were no missing or invalid fields. (Michael Peters).
    • 'separator' was misspelled consistently in the the docs, code and tests. The proper spelling as well as the legacy typo spelling are now supported, although the typo'ed version is no longer documented, except for here. :) Thanks to Terrence Brannon for spotting this.
      • The 'msgs' hash in the profile is now validated to make sure it includes only valid keys. This should help to spot some errors faster.
  • INTERNALS
    • A new test was added to check that no warnings are emitted when an untainted constraint returns undef (Michael Peters)
      • BUG FIXES
        • RT#12220: Canadian Province RE were updated. (Steve Simms).

Modules

Validates user input (usually from an HTML form) based on input profile.
Basic sets of constraints on input profile.
Validate Dates and Times
Module to create constraints for HTML::FormValidator.
Basic set of filters available in an Data::FormValidator profile.
results of form input validation.

Provides

in lib/Data/FormValidator/Results.pm