Skip Menu |

This queue is for tickets about the CGI-FormBuilder CPAN distribution.

Report information
The Basics
Id: 25079
Status: rejected
Priority: 0/
Queue: CGI-FormBuilder

People
Owner: Nobody in particular
Requestors: claco [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: validate regex split on commas
Using commas in a validate regex in a source file causes the regex to always fail as it has been split/loaded incorrectly: description: validate: '/^.{1,25}$/' Even if myfield has a submitted value of abcdef, it will still fail. The debug logs yield: [CGI::FormBuilder::Field::validate] (debug2) description: is 'abcdef' in ('/^.{1 25}$/') ? [CGI::FormBuilder::Field::validate] (debug2) description: pattern FAILED [CGI::FormBuilder::Field::validate] (debug1) description: validation FAILED See also: http://article.gmane.org/gmane.comp.lang.perl.modules.formbuilder/930/match=regex Oddly enough, the error message printed for this field is "Please fill this in", which seems wrong for a textarea field as it IS filled in. test inputs fail validation with "Invalid Entry"....seems like a disconnect there...
This is a valid criticism, but can only be fixed by moving to a proper parser such as YAML, or overhauling Source::File. Currently I do not have the time to do either, but will entertain patches.