From: Evan Prodromou Date: Sun, 28 Jun 2009 18:45:33 +0000 (-0400) Subject: fallback for www. addresses X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d4f1637f8a20d9e4ac059930b7ba444473f5047b;p=quix0rs-gnu-social.git fallback for www. addresses --- diff --git a/classes/Status_network.php b/classes/Status_network.php index f8d6756b69..8726096e3c 100644 --- a/classes/Status_network.php +++ b/classes/Status_network.php @@ -132,6 +132,13 @@ class Status_network extends DB_DataObject } } else { $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)) {