forked from GNUsocial/gnu-social
allow hostname with SSL
This commit is contained in:
parent
e8d85a1ef5
commit
3d723ed1ed
@ -158,6 +158,7 @@ class Status_network extends DB_DataObject
|
||||
0 != strcasecmp($sn->hostname, $servername)) {
|
||||
$sn->redirectTo('http://'.$sn->hostname.$_SERVER['REQUEST_URI']);
|
||||
} else if (!empty($_SERVER['HTTPS']) &&
|
||||
0 != strcasecmp($sn->hostname, $servername) &&
|
||||
0 != strcasecmp($sn->nickname.'.'.$wildcard, $servername)) {
|
||||
$sn->redirectTo('https://'.$sn->nickname.'.'.$wildcard.$_SERVER['REQUEST_URI']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user