Skip to content
Snippets Groups Projects
Commit 8e9b150f authored by Patrik Lermon's avatar Patrik Lermon
Browse files

Fix use of possibly uninitialised $_SERVER['HTTPS']

parent bcbb47b3
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,7 @@ class Misc {
function currentURL() {
$str = 'http';
if ($_SERVER['HTTPS'] == 'on') {
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
$str .='s';
}
$str .= '://';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment