Skip to content

Commit

Permalink
Merge pull request #573 from kazeburo/cve-2016-7401-remove-comma-test
Browse files Browse the repository at this point in the history
#570 CVE-2016-7401. Remove tests that expects cookie to be delimited by comma
  • Loading branch information
miyagawa authored Oct 5, 2016
2 parents ba35d46 + 7a6907b commit ad0d775
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions t/Plack-Request/cookie.t
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,4 @@ test_psgi $app, sub {
$cb->(HTTP::Request->new(GET => "/"));
};

$app = sub {
my $warn = 0;
local $SIG{__WARN__} = sub { $warn++ };

my $req = Plack::Request->new(shift);

is $req->cookies->{Foo}, 'Bar';
is $warn, 0;

$req->new_response(200)->finalize;
};

test_psgi $app, sub {
my $cb = shift;
my $req = HTTP::Request->new(GET => "/");
$req->header(Cookie => 'Foo=Bar,; Bar=Baz;');
$cb->($req);
};

done_testing;

0 comments on commit ad0d775

Please sign in to comment.