mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 00:36:38 +00:00
Function load_data: check length of input, prevents E_NOTICE if too long
Fixes #151
This commit is contained in:
@@ -889,7 +889,7 @@ class Csv {
|
||||
|
||||
if (is_null($input)) {
|
||||
$file = $this->file;
|
||||
} elseif (file_exists($input)) {
|
||||
} elseif (\strlen($input) <= PHP_MAXPATHLEN && file_exists($input)) {
|
||||
$file = $input;
|
||||
} else {
|
||||
$data = $input;
|
||||
|
||||
Reference in New Issue
Block a user