Add correct secure flag to pdata cookie (#2272)

This commit is contained in:
Maxime Besson 2020-08-10 12:09:47 +02:00
parent a96820d6f6
commit 9aa3b9b03f

View File

@ -89,7 +89,8 @@ sub handler {
# Save pdata
if ( $sp or %{ $req->pdata } ) {
my %v = (
name => $self->conf->{cookieName} . 'pdata',
name => $self->conf->{cookieName} . 'pdata',
secure => $self->conf->{securedCookie},
(
%{ $req->pdata }
? ( value => uri_escape( JSON::to_json( $req->pdata ) ) )