Skip to content

Commit

Permalink
Ensure $c->{cookie_domain} can still be set if $c->{host} is undef fo…
Browse files Browse the repository at this point in the history
…r HTTPS only.
  • Loading branch information
drn05r committed Jan 7, 2022
1 parent 4bb583d commit bde3347
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flavours/pub_lib/cfg.d/misc.pl
Expand Up @@ -44,7 +44,7 @@
$c->{allow_user_removal_request} = 1;

# domain for the login and lang. cookies to be set in.
$c->{cookie_domain} = $c->{host};
$c->{cookie_domain} = defined $c->{host} ? $c->{host} : $c->{securehost};

######################################################################
#
Expand Down
2 changes: 1 addition & 1 deletion lib/cfg.d/misc.pl
Expand Up @@ -44,7 +44,7 @@
$c->{allow_user_removal_request} = 1;

# domain for the login and lang. cookies to be set in.
$c->{cookie_domain} = $c->{host};
$c->{cookie_domain} = defined $c->{host} ? $c->{host} : $c->{securehost};

######################################################################
#
Expand Down

0 comments on commit bde3347

Please sign in to comment.