• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/CGI/Untaint/H26-Sep-2005-9119

t/H26-Sep-2005-3828

ChangesH A D26-Sep-2005370 1710

MANIFESTH A D26-Sep-2005138 1110

MANIFEST.SKIPH A D26-Sep-2005357 3328

META.ymlH A D26-Sep-2005433 1412

Makefile.PLH A D03-Feb-2002474 1614

READMEH A D26-Sep-20051.5 KiB5136

README

1NAME
2    CGI::Untaint::date - validate a date
3
4SYNOPSIS
5      use CGI::Untaint;
6      my $handler = CGI::Untaint->new($q->Vars);
7
8      my $date = $handler->extract(-as_date => 'date');
9
10DESCRIPTION
11  is_valid
12    This Input Handler verifies that it is dealing with a reasonable date.
13    Reasonably means anything that Date::Manip thinks is sensible, so you
14    could use any of (for example): "December 12, 2001" "12th December,
15    2001" "2001-12-12" "next Tuesday" "third Wednesday in March"
16
17    See Date::Manip for much more information on what date formats are
18    acceptable.
19
20    The resulting date will be a Date::Simple object. Date::Simple for more
21    information on this.
22
23  date_format
24    By default ambiguous dates of the format 08/09/2001 will be treated as
25    UK style (i.e. 8th September rather than 9th August)
26
27    If you want to change this, subclass it and override date_format()
28
29WARNING
30    Date::Manip does not play nicely with taint mode. In order to work
31    around this we locally clobber Date::Manip's 'timezone' code. As we're
32    only interested in dates rather than times, this shouldn't be much of an
33    issue. If it is, then please let me know!
34
35SEE ALSO
36    Date::Simple. Date::Manip.
37
38AUTHOR
39    Tony Bowden
40
41BUGS and QUERIES
42    Please direct all correspondence regarding this module to:
43    bug-CGI-Untaint-date@rt.cpan.org
44
45COPYRIGHT and LICENSE
46    Copyright (C) 2001-2005 Tony Bowden. All rights reserved.
47
48    This module is free software; you can redistribute it and/or modify it
49    under the same terms as Perl itself.
50
51