From 9aa3b9b03fbedbd0092606535c8552c37dd00d28 Mon Sep 17 00:00:00 2001 From: Maxime Besson Date: Mon, 10 Aug 2020 12:09:47 +0200 Subject: [PATCH] Add correct secure flag to pdata cookie (#2272) --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm index a0f497b2b..17c44032f 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm @@ -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 ) ) )