Skip to content

Commit

Permalink
Fix $_GET
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-vandenberg committed May 14, 2022
1 parent e203890 commit 5222763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
$protocol = $_SERVER['SERVER_PROTOCOL'];
$domain = $_SERVER['HTTP_HOST'];
$script = $_SERVER['SCRIPT_NAME'];
$parameters = $GET ? $_SERVER['QUERY_STRING'] : "" ;
$parameters = $_GET ? $_SERVER['QUERY_STRING'] : "" ;
$protocol=strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https')
=== FALSE ? 'http' : 'https';
$currenturl = $protocol . '://' . $domain. $script . '?' . $parameters;
Expand Down

0 comments on commit 5222763

Please sign in to comment.