diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-28 14:45:33 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-28 14:45:33 -0400 |
commit | d4f1637f8a20d9e4ac059930b7ba444473f5047b (patch) | |
tree | d85ef18be89e9b3968e4e77ab93131528246ac54 | |
parent | 871f598dcc81d7018f25590d767591722bb977f2 (diff) |
fallback for www. addresses
-rw-r--r-- | classes/Status_network.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/Status_network.php b/classes/Status_network.php index f8d6756b6..8726096e3 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)) { |