Fix one mistake where $proto
would not be created if $_SERVER['HTTPS']
exists but is not set to on
This commit is contained in:
@ -41,12 +41,10 @@ $validExtTypes = array("asp", "htm", "html", "php", "rss", "xml", "");
|
|||||||
$currentUrlExt = pathinfo($_SERVER["REQUEST_URI"], PATHINFO_EXTENSION);
|
$currentUrlExt = pathinfo($_SERVER["REQUEST_URI"], PATHINFO_EXTENSION);
|
||||||
|
|
||||||
// Check if this is served over HTTP or HTTPS
|
// Check if this is served over HTTP or HTTPS
|
||||||
if(isset($_SERVER['HTTPS'])) {
|
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
|
||||||
if ($_SERVER['HTTPS'] == "on") {
|
$proto = "https";
|
||||||
$proto = "https";
|
} else {
|
||||||
} else {
|
$proto = "http";
|
||||||
$proto = "http";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set mobile friendly viewport
|
// Set mobile friendly viewport
|
||||||
|
Reference in New Issue
Block a user