fixed case detection

This commit is contained in:
sparc 2006-03-14 16:46:15 +00:00
parent f12c14dd1c
commit 95602e328c
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,6 @@
2006/03/14 David Saez <david@ols.es>
- fixed case detection on whois.parser.php
2006/03/10 David Saez <david@ols.es>
- added handler for .edu

View file

@ -49,9 +49,10 @@ while (list($key,$val)=each($contacts))
{
if (is_array($r[$key]))
$blk=$r[$key][count($r[$key])-1];
else $blk=$r[$key];
else
$blk=$r[$key];
$ret[$val]=$blocks[$blk];
$ret[$val]=$blocks[strtoupper($blk)];
unset($r[$key]);
}
@ -114,7 +115,7 @@ while (list($key,$val)=each($rawdata))
}
else $k=strtolower($k);
if ($k=='handle') $gkey=$v;
if ($k=='handle') $gkey = strtoupper($v);
if (isset($block[$k]) && is_array($block[$k]))
$block[$k][]=$v;