some handlers where not seeting rawdata

This commit is contained in:
sparc 2007-03-28 08:13:56 +00:00
parent 4983c9c45a
commit 8a66ee3610
3 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,6 @@
2007/03/28
- some handlers where not seeting rawdata
2007/03/19 2007/03/19
- Fixed nic.br ip handler detection - Fixed nic.br ip handler detection

View file

@ -84,7 +84,10 @@ if (isSet($_GET['query']))
} }
else else
{ {
$winfo= implode($whois->Query['errstr'],"\n<br></br>"); if (isset($whois->Query['errstr']))
$winfo = implode($whois->Query['errstr'],"\n<br></br>");
else
$winfo = 'Unexpected error';
} }
break; break;

View file

@ -215,8 +215,14 @@ class WhoisClient {
// If we have a handler, post-process it with that // If we have a handler, post-process it with that
if (isSet($this->Query['handler'])) if (isSet($this->Query['handler']))
{
$result = $this->Process($result,$deep_whois); $result = $this->Process($result,$deep_whois);
// Handler may fortget to set rawdata
if (!isset($result['rawdata']))
$result['rawdata'] = $output;
}
// Set whois server // Set whois server
if (!isset($result['regyinfo']['whois'])) if (!isset($result['regyinfo']['whois']))
$result['regyinfo']['whois'] = $this->Query['server']; $result['regyinfo']['whois'] = $this->Query['server'];