[Maypole] Unusual error involving CDBI - DBIx:CF - FromCGI

Dave Howorth dhoworth@mrc-lmb.cam.ac.uk
Fri, 11 Feb 2005 10:31:00 +0000


Torsten Seemann wrote:
> I just put together a basic Maypole app using automatic setup
> to a MySQL InnoDB database. Actions "list" and "view" seem to
> work ok, but any create or edit seem to do nothing, ie "do_edit". 
> 
> The following errors appear in the web server error log (and also when I
> use Maypole::CLI). Also appended is a table schema and my Maypole class.
> 
> Any ideas what would cause these errors or cause do_edit to fail?

You need to call untaint_columns so that do_edit knows how to interpret 
your data. Look at
http://search.cpan.org/~simonflk/Maypole-2.09/lib/Maypole/Manual/StandardTemplates.pod#Digression_on_Class::DBI::FromCGI
and/or check out the BeerDB example.

HTH, Dave