ipcat icon indicating copy to clipboard operation
ipcat copied to clipboard

possible a bug in IpDbGenerate.php

Open kleveralt opened this issue 7 years ago • 0 comments

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.

kleveralt avatar Jun 30 '18 06:06 kleveralt