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

From: Dave Howorth (dhoworth at mrc-lmb.cam.ac.uk)
Date: Fri Feb 11 2005 - 10:31:00 GMT


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

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:58 GMT