Skip to content
Snippets Groups Projects
Commit 500407db authored by Robin Appelman's avatar Robin Appelman
Browse files

change https detection a bit, hopefully fixing an edge case

parent 2f4a2897
Branches
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ class OC_Helper {
if($absolute){
// Checking if the request was made through HTTPS. The last in line is for IIS
$protocol = isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS']) && ($_SERVER['HTTPS']!='off');
$protocol = isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS']!='off');
$urlLinkTo = ($protocol?'https':'http') . '://' . $_SERVER['HTTP_HOST'] . $urlLinkTo;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment