From d4f1637f8a20d9e4ac059930b7ba444473f5047b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 28 Jun 2009 14:45:33 -0400 Subject: [PATCH] fallback for www. addresses --- classes/Status_network.php | 7 +++++++ 1 file changed, 7 insertions(+) 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)) { -- 2.39.5