Skip to content

Commit

Permalink
make potential attack more obvious in example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 16, 2014
1 parent 801901a commit 248676a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,4 +1,6 @@

4.91 2014-03-17

4.90 2014-03-16
- Removed deprecated to_rel method from Mojo::URL.
- Updated IO::Socket::SSL requirement to 1.84 due to breaking changes in
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -43,7 +43,7 @@ has types => sub { Mojolicious::Types->new };
has validator => sub { Mojolicious::Validator->new };

our $CODENAME = 'Top Hat';
our $VERSION = '4.90';
our $VERSION = '4.91';

sub AUTOLOAD {
my $self = shift;
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojolicious/Controller.pm
Expand Up @@ -594,7 +594,8 @@ there can always be multiple values, which might have unexpected consequences.
Parts of the request body need to be loaded into memory to parse C<POST>
parameters, so you have to make sure it is not excessively large.
# List context is ambiguous and should be avoided
# List context is ambiguous and should be avoided, you can get multiple
# values returned for a query string like "?foo=bar&foo=baz&foo=yada"
my $hash = {foo => $self->param('foo')};
# Better enforce scalar context
Expand Down

0 comments on commit 248676a

Please sign in to comment.