forked from GNUsocial/gnu-social
Check for HTTP_HOST before fetching it
This commit is contained in:
parent
5f2b62927c
commit
64b03439b5
@ -1307,11 +1307,11 @@ function common_inject_session($url, $serverpart = null)
|
||||
{
|
||||
if (common_have_session()) {
|
||||
|
||||
if (empty($serverpart)) {
|
||||
$serverpart = parse_url($url, PHP_URL_HOST);
|
||||
}
|
||||
if (empty($serverpart)) {
|
||||
$serverpart = parse_url($url, PHP_URL_HOST);
|
||||
}
|
||||
|
||||
$currentServer = $_SERVER['HTTP_HOST'];
|
||||
$currentServer = (array_has_key('HTTP_HOST')) ? $_SERVER['HTTP_HOST'] : null;
|
||||
|
||||
// Are we pointing to another server (like an SSL server?)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user