From 3a7c138cae0901d43847c25861675de9c91ce250 Mon Sep 17 00:00:00 2001 From: sparc Date: Mon, 23 Aug 2010 11:28:46 +0000 Subject: [PATCH] support for .jp whois english output --- Changes.md | 4 ++++ src/whois.main.php | 2 +- src/whois.servers.php | 7 ++++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Changes.md b/Changes.md index c7eb360..4b882c4 100644 --- a/Changes.md +++ b/Changes.md @@ -1,3 +1,7 @@ +2010/08/23 + - improved extra whois parameters for better + support of .jp whois + 2010/08/10 - joined common whois field list - some minor fixes diff --git a/src/whois.main.php b/src/whois.main.php index 2e56ac6..961ed7a 100755 --- a/src/whois.main.php +++ b/src/whois.main.php @@ -242,7 +242,7 @@ class Whois extends WhoisClient // Special parameters ? if (isset($this->WHOIS_PARAM[$server])) - $this->Query['server'] = $this->Query['server'].'?'.$this->WHOIS_PARAM[$server].$domain; + $this->Query['server'] = $this->Query['server'].'?'.str_replace('$',$domain,$this->WHOIS_PARAM[$server]); return $this->GetData('',$this->deep_whois); } diff --git a/src/whois.servers.php b/src/whois.servers.php index e71d5fb..9f6f55b 100644 --- a/src/whois.servers.php +++ b/src/whois.servers.php @@ -54,9 +54,10 @@ $this->NON_UTF8 = array( /* If whois Server needs any parameters, enter it here */ $this->WHOIS_PARAM = array( - 'com.whois-servers.net' => 'domain =', - 'net.whois-servers.net' => 'domain =', - 'de.whois-servers.net' => '-T dn,ace ' + 'com.whois-servers.net' => 'domain =$', + 'net.whois-servers.net' => 'domain =$', + 'de.whois-servers.net' => '-T dn,ace $', + 'jp.whois-servers.net' => '$/e' ); /* TLD's that have special whois servers or that can only be reached via HTTP */