forked from GNUsocial/gnu-social
fallback for www. addresses
This commit is contained in:
parent
871f598dcc
commit
d4f1637f8a
@ -132,6 +132,13 @@ class Status_network extends DB_DataObject
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$sn = self::memGet('hostname', strtolower($servername));
|
$sn = self::memGet('hostname', strtolower($servername));
|
||||||
|
|
||||||
|
if (empty($sn)) {
|
||||||
|
// Try for a no-www address
|
||||||
|
if (strncasecmp($servername, 'www.', 4)) {
|
||||||
|
$sn = self::memGet('hostname', strtolower(substr($servername, 4)));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($sn)) {
|
if (!empty($sn)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user