From 2a094cfebd3b6601af6a0cb75c9be1e8fa3a7f41 Mon Sep 17 00:00:00 2001 From: sparc Date: Thu, 29 Mar 2012 11:11:58 +0000 Subject: [PATCH] Mark invalid domains as registered --- src/whois.uk.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/whois.uk.php b/src/whois.uk.php index 043c2fb..d33e4b1 100644 --- a/src/whois.uk.php +++ b/src/whois.uk.php @@ -60,7 +60,15 @@ class uk_handler $r = format_dates($r, 'dmy'); } else - $r['regrinfo']['registered'] = 'no'; + { + if (strpos($data_str['rawdata'][1],'Error for ')) + { + $r['regrinfo']['registered'] = 'yes'; + $r['regrinfo']['domain']['status'] = 'invalid'; + } + else + $r['regrinfo']['registered'] = 'no'; + } $r['regyinfo'] = array( 'referrer' => 'http://www.nominet.org.uk',