Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Cannot parse country when using .ch/switch template #13

Open
mariuswilms opened this issue Nov 5, 2013 · 0 comments
Open

Cannot parse country when using .ch/switch template #13

mariuswilms opened this issue Nov 5, 2013 · 0 comments

Comments

@mariuswilms
Copy link

I get the following error when querying for whois on a .ch domain:

PHP Notice:  Undefined offset: 4 in /[...]/Templates/Switch.php on line 103

It seems the country isn't correctly parsed.

https://github.com/novutec/WhoisParser/blob/master/Templates/Switch.php#L103

This is the data I get from the whois query:

whois: This information is subject to an Acceptable Use Policy.
See http://www.nic.ch/terms/aup.html


Domain name:
johnsmith.ch

Holder of domain name:
smith john
teststreet 11
CH-1234 City
Switzerland
Contractual Language: German

Technical contact:
smith john
teststreet 11
CH-1234 City
Switzerland

DNSSEC:N

Name servers:
[...]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant