]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/CGI/Maypole.pm
added new attribute to Maypole::Config - request_options
[maypole.git] / lib / CGI / Maypole.pm
index dda15fcd7a52df6c8dabd3616b4bb22223d1e77a..df75712ac261c52c1dac43228de2d88e4dc48207 100644 (file)
@@ -7,7 +7,7 @@ use CGI::Simple;
 use Maypole::Headers;
 use Maypole::Constants;
 
-our $VERSION = '2.11';
+our $VERSION = '2.12';
 
 __PACKAGE__->mk_accessors( qw/cgi/ );
 
@@ -71,9 +71,11 @@ functionality. See L<Maypole> for these:
 
 =cut
 
-sub get_request 
-{
-    shift->cgi( CGI::Simple->new );
+sub get_request {
+  my $self = shift;
+  my $request_options = $self->config->request_options || {};
+  $CGI::Simple::POST_MAX = $request_options->{POST_MAX} if ($request_options->{POST_MAX});
+  $self->cgi( CGI::Simple->new );
 }
 
 =item parse_location