Fixed issue with nginx HTTPS global
Variable was set to an empty string and being evaluated as true.
This commit is contained in:
parent
33bbcc014b
commit
0c2aaafefc
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ class Browser
|
||||||
{
|
{
|
||||||
if (strpos($destination, '://') === false)
|
if (strpos($destination, '://') === false)
|
||||||
{
|
{
|
||||||
$destination = 'http' . ((!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') ? '' : 's') . '://' . $_SERVER['HTTP_HOST'] . $destination;
|
$destination = 'http' . ((!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off' || $_SERVER['HTTPS'] == '') ? '' : 's') . '://' . $_SERVER['HTTP_HOST'] . $destination;
|
||||||
}
|
}
|
||||||
|
|
||||||
header('Location: ' . $destination);
|
header('Location: ' . $destination);
|
||||||
|
|
2
jar.php
2
jar.php
|
@ -358,7 +358,7 @@ class Browser
|
||||||
{
|
{
|
||||||
if (strpos($destination, '://') === false)
|
if (strpos($destination, '://') === false)
|
||||||
{
|
{
|
||||||
$destination = 'http' . ((!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') ? '' : 's') . '://' . $_SERVER['HTTP_HOST'] . $destination;
|
$destination = 'http' . ((!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off' || $_SERVER['HTTPS'] == '') ? '' : 's') . '://' . $_SERVER['HTTP_HOST'] . $destination;
|
||||||
}
|
}
|
||||||
|
|
||||||
header('Location: ' . $destination);
|
header('Location: ' . $destination);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue