Check domain match with a numeric domain
Check string length instead of value
Don't allow IP addresses to have a prefix

This disallows things like abc.127.0.0.1, which aren't valid domains.
Merge pull request #132 from rmccue/cookie-domain-length-fix

Check cookie domain length properly