Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

possible a bug in IpDbGenerate.php #143

Open
kleveralt opened this issue Jun 30, 2018 · 0 comments
Open

possible a bug in IpDbGenerate.php #143

kleveralt opened this issue Jun 30, 2018 · 0 comments

Comments

@kleveralt
Copy link

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 kleveralt changed the title bug in IpDbGenerate.php possible a bug in IpDbGenerate.php Jun 30, 2018
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