Skip to content

Commit

Permalink
Make sure that HTTPS indicator is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ylavoie committed Sep 29, 2021
1 parent 1f5b8d8 commit 7491637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/LedgerSMB/Middleware/SessionStorage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ sub call {
my $cookie = $req->cookies->{$self->cookie};
my $session = $store->decode($cookie);

my $secure = $env->{HTTPS} eq 'ON';
my $secure = defined($env->{HTTPS}) && $env->{HTTPS} eq 'ON';
my $path =
$self->cookie_path //
LedgerSMB::PSGI::Util::cookie_path($env->{SCRIPT_NAME});
Expand Down

0 comments on commit 7491637

Please sign in to comment.