[Bast-commits] r7030 -
DBIx-Class/0.08/trunk/lib/DBIx/Class/InflateColumn
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Sat Jul 11 09:26:41 GMT 2009
Author: caelum
Date: 2009-07-11 09:26:40 +0000 (Sat, 11 Jul 2009)
New Revision: 7030
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/InflateColumn/DateTime.pm
Log:
reword IC::DT doc patch
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/InflateColumn/DateTime.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/InflateColumn/DateTime.pm 2009-07-10 22:03:07 UTC (rev 7029)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/InflateColumn/DateTime.pm 2009-07-11 09:26:40 UTC (rev 7030)
@@ -51,10 +51,11 @@
starts_when => { data_type => 'datetime', inflate_datetime => 0 }
);
-NOTE: Don't rely on C<InflateColumn::DateTime> to validate user input, this
-may have unexpected security implications. Instead, use an input parser to
-create a DateTime object. For instance, if your user input comes as a
-'YYYY-MM-DD' string, you can use C<DateTime::Format::ISO8601> thusly:
+NOTE: Don't rely on C<InflateColumn::DateTime> to parse date strings for you.
+The column is set directly for any non-references and C<InflateColumn::DateTime>
+is completely bypassed. Instead, use an input parser to create a DateTime
+object. For instance, if your user input comes as a 'YYYY-MM-DD' string, you can
+use C<DateTime::Format::ISO8601> thusly:
use DateTime::Format::ISO8601;
my $dt = DateTime::Format::ISO8601->parse_datetime('YYYY-MM-DD');
More information about the Bast-commits
mailing list