Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes issue with original fix for #118 cookie issue.
  • Loading branch information
drn05r committed Jun 2, 2021
1 parent 0d9b5c8 commit 8c18cd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions perl_lib/EPrints/Plugin/Screen/SetLang.pm
Expand Up @@ -23,11 +23,11 @@ sub from
my $samesite = "Lax";
my $secure = 0;
my $httponly = 1;
if ( $session->{request}->scheme() eq "https" )
if ( $session->is_secure eq "on" )
{
my $samesite = "None";
my $secure = 1;
my $httponly = 0;
$samesite = "None";
$secure = 1;
$httponly = 0;
}
my $cookie = $session->{query}->cookie(
-name => "eprints_lang",
Expand Down

0 comments on commit 8c18cd4

Please sign in to comment.