Function load_data: check length of input, prevents E_NOTICE if too long

Fixes #151
This commit is contained in:
Fonata
2018-09-25 00:28:12 +02:00
parent 3b74f7ce57
commit 8aa61914f7

View File

@@ -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;