Skip to content
Snippets Groups Projects
Unverified Commit fe28bc52 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #5125 from kler/feature/fix-use-uninitialised-server-var

Fix use of possibly uninitialised $_SERVER['HTTPS']
parents eff0bca1 8e9b150f
No related branches found
No related tags found
No related merge requests found
......@@ -230,7 +230,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