Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

Commit

Permalink
Patched: bad url when not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
Bencor29 committed Jul 29, 2019
1 parent df3ee13 commit 3a3adbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/url.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function h_url_load_config() {
$cnf = new ConfigLoader();
$url = $cnf->load('url');
if($url['base'] === null) {
$url['base'] = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$url['base'] = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]";
}
}

Expand Down

0 comments on commit 3a3adbd

Please sign in to comment.