Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Config/whois.ini
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ tn[template] = tn

tr[server] = whois.nic.tr
tr[template] = tr
tr[encoding] = iso-8859-9

travel[server] = whois.nic.travel
travel[template] = neustar
Expand Down Expand Up @@ -762,3 +763,5 @@ whois.wildwestdomains.com[template] = gtld_godaddy ; #440
whois.yesnic.com[template] = standard
whois.your-server.de[template] = gtld_hetzner ; #828
whois.yourjungle.com[template] = standard
whois.onlinenic.com[template] = standard
whois.metunic.com.tr[template] = standard
3 changes: 1 addition & 2 deletions Templates/Tr.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ public function postProcess(&$WhoisParser)

foreach ($ResultSet->contacts as $contactType => $contactArray) {
foreach ($contactArray as $contactObject) {
$contactObject->address = array_map('utf8_encode', explode("\n", trim($contactObject->address)));
$contactObject->address = array_map('trim', $contactObject->address);
$contactObject->address = array_map('trim', explode("\n", trim($contactObject->address)));

if ($contactType === 'owner') {
$contactObject->organization = $contactObject->address[0];
Expand Down
3 changes: 3 additions & 0 deletions Templates/Type/AbstractTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ public function translateRawData($rawdata, $config)
case 'iso-8859-1':
$rawdata = utf8_encode($rawdata);
break;
case 'iso-8859-9':
$rawdata = iconv("ISO-8859-9", "UTF-8", $rawdata);
break;
}
}

Expand Down