fallback for www. addresses

This commit is contained in:
Evan Prodromou 2009-06-28 14:45:33 -04:00
parent 871f598dcc
commit d4f1637f8a

View File

@ -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)) {