We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20dcecb commit fb923fcCopy full SHA for fb923fc
lib/Plack/Middleware/Session/Cookie.pm
@@ -16,10 +16,8 @@ use Plack::Session::State::Cookie;
16
sub prepare_app {
17
my $self = shift;
18
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
+ die "Plack::Session::Middleware::Cookie requires setting 'secret' option."
+ unless $self->secret;
23
24
$self->session_key("plack_session") unless $self->session_key;
25
0 commit comments