Skip to content

Commit

Permalink
Update defaults.php
Browse files Browse the repository at this point in the history
$isSecure = true; should possibly be return true; ?
  • Loading branch information
Fraenkiman authored Apr 27, 2024
1 parent 85e6b22 commit ab1a9df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions defaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ function is_https() {
}
// HTTPS called reverse proxy / load balancer
if (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' || !empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on') {
$isSecure = true;
return true;
}
// none of the above: must be HTTP
return false;
}
}

1 comment on commit ab1a9df

@azett
Copy link
Member

@azett azett commented on ab1a9df Apr 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omg... o_O
thx @Fraenkiman !

Please sign in to comment.