Skip to content
Permalink
Browse files
Fixes issue with original fix for #118 cookie issue.
  • Loading branch information
drn05r committed Jun 2, 2021
1 parent 0d9b5c8 commit 8c18cd49c65597539bd3fe9c1c97ef05c52694f7
Showing with 4 additions and 4 deletions.
  1. +4 −4 perl_lib/EPrints/Plugin/Screen/SetLang.pm
@@ -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",

0 comments on commit 8c18cd4

Please sign in to comment.