in reply to Re: hash collision DOS
in thread hash collision DOS
But doesn't CGI store fields internally as a hash?
From CGI 2.81:
sub param { my($self,@p) = self_or_default(@_); return $self->all_parameters unless @p; my($name,$value,@other); #~~~~~Snip~~~~~ ($name,$value,@other) = rearrange([NAME,[DEFAULT,VALUE,VALUES]],@p +); #~~~~~Snip~~~~~ return wantarray ? @{$self->{$name}} : $self->{$name}->[0]; }
It also looks like CGI::Simple does the same:
From CGI::Simple 0.06
sub param { my ( $self, $param, @p ) = @_; #~~~~~Snip~~~~~ return wantarray ? @{$self->{$param}} : $self->{$param}->[0]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: hash collision DOS
by crazyinsomniac (Prior) on Jun 02, 2003 at 13:50 UTC | |
by iburrell (Chaplain) on Jun 02, 2003 at 21:32 UTC | |
by crazyinsomniac (Prior) on Jun 02, 2003 at 23:22 UTC | |
by iburrell (Chaplain) on Jun 03, 2003 at 00:16 UTC |