phpWhois
phpWhois copied to clipboard
eval in generic_parser_b will fail on some domains (solution within)
The line:
eval($var . '="' . str_replace('"', '\"', $itm) . '";');
Should be:
$itm = rtrim($itm,"\\"); eval($var . '="' . str_replace('"', '\"', $itm) . '";');
Because if $itm has a \ at the end of the value, it will trigger a ParseError.
Thanks for the tip!
I will import this fix in my version of packagist: kevinoo/phpwhois
Have a nice day!