ipcat
ipcat copied to clipboard
possible a bug in IpDbGenerate.php
php code:
$rowstr = file_get_contents('https://raw.github.com/client9/ipcat/master/datacenters.csv');
$rows = explode("\n", $rowstr);
foreach ($rows as $row) {
if (strlen($row) == 0 || $row[0] == '#') {
continue;
}
$parts = explode(',', $row); // it breaks rows to arrays divided by ","
there is one company named as "ThePlanet.com Internet Services, Inc." in datacenters.csv, and it will result in failed on generating code.