diff --git a/parsecsv.lib.php b/parsecsv.lib.php index 42cd40a..d327bc3 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -405,7 +405,7 @@ class parseCSV { $this->conditions = $conditions; } - if (is_readable($input)) { + if (strlen($input) <= PHP_MAXPATHLEN && is_readable($input)) { $this->data = $this->parse_file($input); } else { $this->file_data = &$input;