Skip to content

Commit fb923fc

Browse files
committed
change the warning to die
1 parent 20dcecb commit fb923fc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Plack/Middleware/Session/Cookie.pm

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ use Plack::Session::State::Cookie;
1616
sub prepare_app {
1717
my $self = shift;
1818

19-
warn <<WARN unless $self->secret;
20-
WARNING: You seem to enable Plack::Session::Middleware::Cookie without setting 'secret' option!
21-
WARNING: It is vulnerable to arbitrary code execution and in the future releases you'll get an error.
22-
WARN
19+
die "Plack::Session::Middleware::Cookie requires setting 'secret' option."
20+
unless $self->secret;
2321

2422
$self->session_key("plack_session") unless $self->session_key;
2523

0 commit comments

Comments
 (0)