Skip to content

Commit

Permalink
mention security feature in body_params description
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 3, 2012
1 parent 365c6eb commit c174391
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/Asset/Memory.pm
Expand Up @@ -117,8 +117,8 @@ automatically upgrade to a L<Mojo::Asset::File> object.
my $size = $mem->max_memory_size;
$mem = $mem->max_memory_size(1024);
Maximum asset size in bytes, only attempt upgrading to a L<Mojo::Asset::File>
object after reaching this limit, defaults to the value of the
Maximum size in bytes of data to keep in memory before automatically
upgrading to a L<Mojo::Asset::File> object, defaults to the value of the
C<MOJO_MAX_MEMORY_SIZE> environment variable or C<262144>.
=head1 METHODS
Expand Down
6 changes: 5 additions & 1 deletion lib/Mojo/Message.pm
Expand Up @@ -622,7 +622,11 @@ Access C<content> data or replace all subscribers of the C<read> event.
my $params = $message->body_params;
C<POST> parameters, usually a L<Mojo::Parameters> object.
C<POST> parameters extracted from C<x-application-urlencoded>,
C<application/x-www-form-urlencoded> or C<multipart/form-data> message
content, usually a L<Mojo::Parameters> object. For security reasons only
content that does not exceed L<Mojo::Asset::Memory/"max_memory_size"> will be
parsed.
say $message->body_params->param('foo');
Expand Down

0 comments on commit c174391

Please sign in to comment.