Support HTTPS connections when $root is not configured
This commit is contained in:
parent
e2c4b53ecb
commit
69e58d8632
2 changed files with 5 additions and 1 deletions
|
@ -15,6 +15,7 @@ ChangeLog for SemantiScuttle
|
|||
- api/posts/add respects the "replace" parameter now
|
||||
- Fix privacy issue when fetching tags of several users
|
||||
- Only URLs with an allowed protocol may be added to the database
|
||||
- Support HTTPS connections when $root is not configured
|
||||
|
||||
|
||||
0.97.2 - 2011-02-17
|
||||
|
|
|
@ -41,7 +41,10 @@ if (!isset($GLOBALS['root'])) {
|
|||
$rootTmp .= '/';
|
||||
}
|
||||
|
||||
define('ROOT', 'http://'. $_SERVER['HTTP_HOST'] . $rootTmp);
|
||||
//we do not prepend http since we also want to support https connections
|
||||
// "http" is not required; it's automatically determined by the browser
|
||||
// depending on the current connection.
|
||||
define('ROOT', '//'. $_SERVER['HTTP_HOST'] . $rootTmp);
|
||||
} else {
|
||||
define('ROOT', $GLOBALS['root']);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue