mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +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)) {
|
if (is_null($input)) {
|
||||||
$file = $this->file;
|
$file = $this->file;
|
||||||
} elseif (file_exists($input)) {
|
} elseif (\strlen($input) <= PHP_MAXPATHLEN && file_exists($input)) {
|
||||||
$file = $input;
|
$file = $input;
|
||||||
} else {
|
} else {
|
||||||
$data = $input;
|
$data = $input;
|
||||||
|
|||||||
Reference in New Issue
Block a user