From 8e9b150fd1300bfb8f8ce97c6cdccd1590dccb97 Mon Sep 17 00:00:00 2001 From: Patrik Lermon <patrik.lermon@gmail.com> Date: Fri, 25 Oct 2019 16:46:04 +0200 Subject: [PATCH] Fix use of possibly uninitialised $_SERVER['HTTPS'] --- include/class.misc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.misc.php b/include/class.misc.php index b5ce88705..10130e2df 100644 --- a/include/class.misc.php +++ b/include/class.misc.php @@ -145,7 +145,7 @@ class Misc { function currentURL() { $str = 'http'; - if ($_SERVER['HTTPS'] == 'on') { + if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') { $str .='s'; } $str .= '://'; -- GitLab